abandon_stale: fix style warnings from flake8

Change-Id: I7d12bc2e9edc0fbbbb7e0aea61b4c7118d99fb2d
This commit is contained in:
David Pursehouse 2017-10-22 15:08:50 +09:00
parent 4e0011e3fc
commit 9a8851bfbc

View File

@ -200,7 +200,7 @@ def _main():
try: try:
gerrit.post("/changes/" + change_id + "/abandon", gerrit.post("/changes/" + change_id + "/abandon",
json={"message" : "%s" % abandon_message}) json={"message": "%s" % abandon_message})
abandoned += 1 abandoned += 1
except Exception as e: except Exception as e:
errors += 1 errors += 1
@ -209,5 +209,6 @@ def _main():
if not options.dry_run: if not options.dry_run:
logging.info("Abandoned %d changes. %d errors.", abandoned, errors) logging.info("Abandoned %d changes. %d errors.", abandoned, errors)
if __name__ == "__main__": if __name__ == "__main__":
sys.exit(_main()) sys.exit(_main())