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')",
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
except KeyboardInterrupt:
print("Cleaning up")
cleanup()
-except Exception, reason:
+except Exception as reason:
print("Failed bisect: %s" % reason)
cleanup()