jenkins-bot has submitted this change and it was merged.
Change subject: PEP8 fixes ......................................................................
PEP8 fixes
- Specify the type of exception expected from winreg. - Fix E128 continuation line under-indented for visual indent by removing double brackets added in Ia0edaf1b30b27d424d2b3fc2fd0fd827947dd72d
Change-Id: Ic6af11ab8db95b1d6f74d5d06ed7b58169d1d6bf --- M pywikibot/config2.py 1 file changed, 4 insertions(+), 5 deletions(-)
Approvals: Ricordisamoa: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/config2.py b/pywikibot/config2.py index 2f00d57..3ddcff7 100644 --- a/pywikibot/config2.py +++ b/pywikibot/config2.py @@ -284,9 +284,8 @@ # Notepad is even worse than our Tkinter editor. if editor.lower().endswith('notepad.exe'): editor = None - except: - # XXX what are we catching here? - #raise + except WindowsError: + # Catch any key lookup errors editor = None else: editor = None @@ -724,9 +723,9 @@ print(" %(now)s: %(new)s" % {'now': "Now", 'new': nt}) del nt, ot, ov else: - print(("WARNING: " + print("WARNING: " "Configuration variable %(_key)r is defined but unknown.\n" - "Misspelled?" % locals())) + "Misspelled?" % locals())
# Fix up default console_encoding if console_encoding is None:
pywikibot-commits@lists.wikimedia.org