mirror of https://github.com/docker/docker-py.git
Merge pull request #531 from josephpage/dockerignore-eof-windows
Windows : fix EOL of .dockerignore file
This commit is contained in:
commit
96440cccb0
|
@ -322,7 +322,7 @@ class Client(requests.Session):
|
|||
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:
|
||||
|
|
Loading…
Reference in New Issue