summaryrefslogtreecommitdiff
path: root/docker/auth/auth.py
diff options
context:
space:
mode:
authorEvgeniy L <test0x0000@gmail.com>2014-03-28 23:08:22 +0400
committerEvgeniy L <test0x0000@gmail.com>2014-03-28 23:08:22 +0400
commit2a1484f655ec76e99b8028c0052deff5a17e789e (patch)
tree7776a51e2e9250d6d269f2fe5a4ef6fdade10222 /docker/auth/auth.py
parent24cc9df5f58e540b4607a144a928e263ab46d926 (diff)
downloaddocker-py-2a1484f655ec76e99b8028c0052deff5a17e789e.tar.gz
Fixes for flake8
Next rules were broken * E265 block comment should start with '# ' * E713 test for membership should be 'not in'
Diffstat (limited to 'docker/auth/auth.py')
-rw-r--r--docker/auth/auth.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/docker/auth/auth.py b/docker/auth/auth.py
index bef010f..f0ab744 100644
--- a/docker/auth/auth.py
+++ b/docker/auth/auth.py
@@ -48,7 +48,7 @@ def resolve_repository_name(repo_name):
raise ValueError('Repository name cannot contain a '
'scheme ({0})'.format(repo_name))
parts = repo_name.split('/', 1)
- if not '.' in parts[0] and not ':' in parts[0] and parts[0] != 'localhost':
+ if '.' not in parts[0] and ':' not in parts[0] and parts[0] != 'localhost':
# This is a docker index repo (ex: foo/bar or ubuntu)
return INDEX_URL, repo_name
if len(parts) < 2: