Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docker/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ def build(self, path=None, tag=None, quiet=False, fileobj=None,
exclude = None
if os.path.exists(dockerignore):
with open(dockerignore, 'r') as f:
exclude = list(filter(bool, f.read().split('\n')))
exclude = list(filter(bool, f.read().splitlines()))
# These are handled by the docker daemon and should not be
# excluded on the client
if 'Dockerfile' in exclude:
Expand Down