jenkins-bot has submitted this change and it was merged.
Change subject: Py3-ify pwb.py ......................................................................
Py3-ify pwb.py
Change-Id: I8627fdc14e075290537929ba5a5387bafddd5112 --- M pwb.py 1 file changed, 4 insertions(+), 4 deletions(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/pwb.py b/pwb.py index e4afb68..945d4e1 100644 --- a/pwb.py +++ b/pwb.py @@ -61,7 +61,7 @@
try: source = open(filename).read() - exec compile(source, filename, "exec") in main_mod.__dict__ + exec(compile(source, filename, "exec"), main_mod.__dict__) finally: # Restore the old __main__ sys.modules['__main__'] = old_main_mod @@ -99,8 +99,8 @@
user_config_path = os.path.join(os.environ["PYWIKIBOT2_DIR"], "user-config.py") if not os.path.exists(user_config_path): - print "NOTE:", user_config_path, "was not found!" - print "Please follow the prompts to create it:" + print("NOTE: %s was not found" % user_config_path) + print("Please follow the prompts to create it:") path = 'generate_user_files.py' run_python_file(path, [path], [path.decode('ascii')])
@@ -122,4 +122,4 @@ raise Exception("%s not found!" % fn) run_python_file(fn, argv, argvu) elif __name__ == "__main__": - print __doc__ + print(__doc__)
pywikibot-commits@lists.wikimedia.org