Improve language.

This commit is contained in:
Felix Fontein
2024-12-28 14:30:49 +01:00
parent 04c97728dc
commit f69536ef3b
34 changed files with 89 additions and 89 deletions
+4 -4
View File
@@ -100,7 +100,7 @@ def create_archive(root, files=None, fileobj=None, gzip=False,
i.mtime = int(i.mtime)
if IS_WINDOWS_PLATFORM:
# Windows doesn't keep track of the execute bit, so we make files
# Windows does not keep track of the execute bit, so we make files
# and directories executable by default.
i.mode = i.mode & 0o755 | 0o111
@@ -113,7 +113,7 @@ def create_archive(root, files=None, fileobj=None, gzip=False,
'Can not read file in context: {0}'.format(full_path)
)
else:
# Directories, FIFOs, symlinks... don't need to be read.
# Directories, FIFOs, symlinks... do not need to be read.
t.addfile(i, None)
for name, contents in extra_files:
@@ -210,10 +210,10 @@ class PatternMatcher(object):
continue
if match:
# If we want to skip this file and it's a directory
# If we want to skip this file and it is a directory
# then we should first check to see if there's an
# excludes pattern (e.g. !dir/file) that starts with this
# dir. If so then we can't skip this dir.
# dir. If so then we cannot skip this dir.
skip = True
for pat in self.patterns:
+1 -1
View File
@@ -70,7 +70,7 @@ def load_general_config(config_path=None):
with open(config_file) as f:
return json.load(f)
except (IOError, ValueError) as e:
# In the case of a legacy `.dockercfg` file, we won't
# In the case of a legacy `.dockercfg` file, we will not
# be able to load any JSON data.
log.debug(e)
+2 -2
View File
@@ -48,7 +48,7 @@ def fnmatch(name, pat):
An initial period in FILENAME is not special.
Both FILENAME and PATTERN are first case-normalized
if the operating system requires it.
If you don't want this, use fnmatchcase(FILENAME, PATTERN).
If you do not want this, use fnmatchcase(FILENAME, PATTERN).
"""
name = name.lower()
@@ -58,7 +58,7 @@ def fnmatch(name, pat):
def fnmatchcase(name, pat):
"""Test whether FILENAME matches PATTERN, including case.
This is a version of fnmatch() which doesn't case-normalize
This is a version of fnmatch() which does not case-normalize
its arguments.
"""
+2 -2
View File
@@ -64,7 +64,7 @@ def read(socket, n=4096):
len(e.args) > 0 and
e.args[0] == NPIPE_ENDED)
if is_pipe_ended:
# npipes don't support duplex sockets, so we interpret
# npipes do not support duplex sockets, so we interpret
# a PIPE_ENDED error as a close operation (0-length read).
return ''
raise
@@ -73,7 +73,7 @@ def read(socket, n=4096):
def read_exactly(socket, n):
"""
Reads exactly n bytes from socket
Raises SocketError if there isn't enough data
Raises SocketError if there is not enough data
"""
data = binary_type()
while len(data) < n:
+2 -2
View File
@@ -160,7 +160,7 @@ def convert_volume_binds(binds):
mode = 'rw'
# NOTE: this is only relevant for Linux hosts
# (doesn't apply in Docker Desktop)
# (does not apply in Docker Desktop)
propagation_modes = [
'rshared',
'shared',
@@ -391,7 +391,7 @@ def kwargs_from_env(ssl_version=None, assert_hostname=None, environment=None):
if not tls_verify and assert_hostname is None:
# assert_hostname is a subset of TLS verification,
# so if it's not set already then set it to false.
# so if it is not set already then set it to false.
assert_hostname = False
params['tls'] = TLSConfig(