summaryrefslogtreecommitdiff
path: root/django/utils/archive.py
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2016-04-03 20:37:32 -0400
committerTim Graham <timograham@gmail.com>2016-04-04 17:14:26 -0400
commit2cd2d188516475ddf256e6267cd82c495fb5c430 (patch)
tree1a7c3c167c1576923c7c4f5544495face5bd7327 /django/utils/archive.py
parentd356bb653f4d90ae9809e5a051791ded39010c38 (diff)
Fixed W503 flake8 warnings.
Diffstat (limited to 'django/utils/archive.py')
-rw-r--r--django/utils/archive.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/django/utils/archive.py b/django/utils/archive.py
index 6a47b00502..3e47213455 100644
--- a/django/utils/archive.py
+++ b/django/utils/archive.py
@@ -101,8 +101,7 @@ class BaseArchive(object):
def split_leading_dir(self, path):
path = str(path)
path = path.lstrip('/').lstrip('\\')
- if '/' in path and (('\\' in path and path.find('/') < path.find('\\'))
- or '\\' not in path):
+ if '/' in path and (('\\' in path and path.find('/') < path.find('\\')) or '\\' not in path):
return path.split('/', 1)
elif '\\' in path:
return path.split('\\', 1)