summaryrefslogtreecommitdiff
path: root/docker/auth
diff options
context:
space:
mode:
authorshin- <joffrey@dotcloud.com>2014-04-04 16:55:01 +0200
committershin- <joffrey@dotcloud.com>2014-04-04 16:55:01 +0200
commit54c904f80693c3be17721b1a8bf6512b571cbda3 (patch)
tree7722c2ef759af5c0409f20dc880671d272f059d5 /docker/auth
parent156d14efd13f85bb70f0d5b4b5a63d55e0d9745c (diff)
downloaddocker-py-54c904f80693c3be17721b1a8bf6512b571cbda3.tar.gz
Updated unit tests API version, flake8 fixes
Diffstat (limited to 'docker/auth')
-rw-r--r--docker/auth/auth.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/docker/auth/auth.py b/docker/auth/auth.py
index 59fe1a5..d62705f 100644
--- a/docker/auth/auth.py
+++ b/docker/auth/auth.py
@@ -91,6 +91,7 @@ def encode_auth(auth_info):
return base64.b64encode(auth_info.get('username', '') + b':' +
auth_info.get('password', ''))
+
def decode_auth(auth):
if isinstance(auth, six.string_types):
auth = auth.encode('ascii')