mirror of https://github.com/docker/docker-py.git
Merge pull request #46 from adrien-candiotti/master
Update utils.py - the tar function in utils is a non member function but...
This commit is contained in:
commit
1c161a4ab1
|
|
@ -38,7 +38,7 @@ def mkbuildcontext(dockerfile):
|
||||||
return f
|
return f
|
||||||
|
|
||||||
|
|
||||||
def tar(self, path):
|
def tar(path):
|
||||||
f = tempfile.TemporaryFile()
|
f = tempfile.TemporaryFile()
|
||||||
t = tarfile.open(mode='w', fileobj=f)
|
t = tarfile.open(mode='w', fileobj=f)
|
||||||
t.add(path, arcname='.')
|
t.add(path, arcname='.')
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue