PEP8: fix E225: missing whitespace around operator
[nivanova/samba-autobuild/.git] / script / bisect-test.py
index e4daa8c2c12b2442c33f23c371b1cba12c66dd5c..71c68b0d727816bc07ef6804d44099718dc52509 100755 (executable)
@@ -17,7 +17,7 @@ parser.add_option("", "--autogen", help="run autogen before each build",action="
 parser.add_option("", "--autogen-command", help="command to use for autogen (default ./autogen.sh)",
                   type='str', default="./autogen.sh")
 parser.add_option("", "--configure", help="run configure.developer before each build",
-    action="store_true", default=False)
+                  action="store_true", default=False)
 parser.add_option("", "--configure-command", help="the command for configure (default ./configure.developer)",
                   type='str', default="./configure.developer")
 parser.add_option("", "--build-command", help="the command to build the tree (default 'make -j')",
@@ -43,7 +43,7 @@ def run_cmd(cmd, dir=".", show=True, output=False, checkfail=True):
 
 def find_git_root():
     '''get to the top of the git repo'''
-    p=os.getcwd()
+    p = os.getcwd()
     while p != '/':
         if os.path.isdir(os.path.join(p, ".git")):
             return p
@@ -86,7 +86,7 @@ try:
 except KeyboardInterrupt:
     print("Cleaning up")
     cleanup()
-except Exception, reason:
+except Exception as reason:
     print("Failed bisect: %s" % reason)
     cleanup()