jenkins-bot has submitted this change and it was merged.
Change subject: Pyflakes fix: Changed WindowsError to OSError ......................................................................
Pyflakes fix: Changed WindowsError to OSError
Pyflakes fix: undefined name 'WindowsError'
On linux systems, WindowsError it is not necessarily defined. Replaced with the parent class, as it is not used in sections of code specific for Windows systems.
Change-Id: Ice9234fde21ff666e438cfc6047b0a8d1f2d23f8 --- M scripts/interwiki.py 1 file changed, 1 insertion(+), 1 deletion(-)
Approvals: John Vandenberg: Looks good to me, approved jenkins-bot: Verified
diff --git a/scripts/interwiki.py b/scripts/interwiki.py index 3026840..c071d9d 100755 --- a/scripts/interwiki.py +++ b/scripts/interwiki.py @@ -2593,7 +2593,7 @@ try: os.remove(dumpFileName) pywikibot.output(u'Dumpfile %s deleted' % dumpFileName.split('\')[-1]) - except WindowsError: + except OSError: pass
# ===========
pywikibot-commits@lists.wikimedia.org