Merlijn van Deen has uploaded a new change for review.
https://gerrit.wikimedia.org/r/76526
Change subject: pep8-ify pwb.py
......................................................................
pep8-ify pwb.py
Change-Id: Ia53114ae7050617b3d1e4f6e15f9263ec8276d39
---
M pwb.py
1 file changed, 3 insertions(+), 2 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core refs/changes/26/76526/1
diff --git a/pwb.py b/pwb.py
index 0327ab1..9e7a7d9 100644
--- a/pwb.py
+++ b/pwb.py
@@ -12,7 +12,8 @@
# Distributed under the terms of the MIT license.
#
-import sys,os
+import sys
+import os
if sys.version_info[0] != 2:
raise RuntimeError("ERROR: Pywikipediabot only runs under Python 2")
@@ -45,7 +46,7 @@
if os.path.exists(testpath):
sys.argv[0] = testpath
else:
- raise Exception("%s not found!" % sys.argv[0])
+ raise Exception("%s not found!" % sys.argv[0])
sys.path.append(os.path.split(sys.argv[0])[0])
execfile(sys.argv[0])
else:
--
To view, visit
https://gerrit.wikimedia.org/r/76526
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia53114ae7050617b3d1e4f6e15f9263ec8276d39
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Merlijn van Deen <valhallasw(a)arctus.nl>