changeset 2036:2d9e7b936ee1

flake8: fix error in 'setup.py' Some strange indentation in there.
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Thu, 02 Mar 2017 20:23:45 +0100
parents 94fe2cc9cd41
children 23b9c71caa70
files setup.py
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/setup.py	Thu Mar 02 20:23:18 2017 +0100
+++ b/setup.py	Thu Mar 02 20:23:45 2017 +0100
@@ -9,8 +9,8 @@
         # (gives unicode object in PY2)
         line = line.decode('utf8')
         if '__version__' in line:
-          if "'" in line:
-            return line.split("'")[1]
+            if "'" in line:
+                return line.split("'")[1]
 
 def min_hg_version(relpath):
     '''Read version info from a file without importing it'''
@@ -19,8 +19,8 @@
         # (gives unicode object in PY2)
         line = line.decode('utf8')
         if 'testedwith' in line:
-          if "'" in line:
-            return min(line.split("'")[1].split())
+            if "'" in line:
+                return min(line.split("'")[1].split())
 
 py_modules = [
     'hgext3rd.evolve.serveronly',