mirror of
https://github.com/certbot/certbot.git
synced 2026-01-26 07:41:33 +03:00
Grammar (#7013)
* spelling: these * grammar: either-or * spelling: e.g.
This commit is contained in:
committed by
Adrien Ferrand
parent
60e734c969
commit
82f64126d9
@@ -31,7 +31,7 @@ def raise_for_non_administrative_windows_rights(subcommand):
|
||||
# Because windll exists only on a Windows runtime, and static code analysis engines
|
||||
# do not like at all non existent objects when run from Linux (even if we handle properly
|
||||
# all the cases in the code).
|
||||
# So we access windll only by reflection to trick theses engines.
|
||||
# So we access windll only by reflection to trick these engines.
|
||||
if hasattr(ctypes, 'windll') and subcommand not in UNPRIVILEGED_SUBCOMMANDS_ALLOWED:
|
||||
windll = getattr(ctypes, 'windll')
|
||||
if windll.shell32.IsUserAnAdmin() == 0:
|
||||
@@ -73,7 +73,7 @@ def os_rename(src, dst):
|
||||
raise
|
||||
if not hasattr(os, 'replace'): # pragma: no cover
|
||||
# We should never go on this line. Either we are on Linux and os.rename has succeeded,
|
||||
# either we are on Windows, and only Python >= 3.4 is supported where os.replace is
|
||||
# or we are on Windows, and only Python >= 3.4 is supported where os.replace is
|
||||
# available.
|
||||
raise RuntimeError('Error: tried to run os_rename on Python < 3.3. '
|
||||
'Certbot supports only Python 3.4 >= on Windows.')
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
"""
|
||||
This compat modules is a wrapper of the core os module that forbids usage of specific operations
|
||||
(eg. chown, chmod, getuid) that would be harmful to the Windows file security model of Certbot.
|
||||
(e.g. chown, chmod, getuid) that would be harmful to the Windows file security model of Certbot.
|
||||
This module is intended to replace standard os module throughout certbot projects (except acme).
|
||||
"""
|
||||
from __future__ import absolute_import
|
||||
|
||||
Reference in New Issue
Block a user