Skip to content

Commit 74586cd

Browse files
committed
Fix flake8 case
Signed-off-by: Wanzhi Du <[email protected]>
1 parent 7a28ff3 commit 74586cd

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

docker/api/build.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,8 @@ def build(self, path=None, tag=None, quiet=False, fileobj=None,
143143
if os.path.exists(dockerignore):
144144
with open(dockerignore, 'r') as f:
145145
exclude = list(filter(
146-
lambda x: x != '' and x[0] != '#', [l.strip() for l in f.read().splitlines()]
146+
lambda x: x != '' and x[0] != '#',
147+
[l.strip() for l in f.read().splitlines()]
147148
))
148149
context = utils.tar(
149150
path, exclude=exclude, dockerfile=dockerfile, gzip=gzip

tests/integration/api_build_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def test_build_with_dockerignore(self):
6262
'.dockerignore',
6363
'!ignored/subdir/excepted-file',
6464
'', # empty line,
65-
'#', # comment line
65+
'#', # comment line
6666
]))
6767

6868
with open(os.path.join(base_dir, 'not-ignored'), 'w') as f:

0 commit comments

Comments
 (0)