jenkins-bot has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/909805 )

Change subject: [IMPR] No longer catch SyntaxError in wrapper.py script
......................................................................

[IMPR] No longer catch SyntaxError in wrapper.py script

The syntax check was introduced in release 7.7 after Python version check
was dropped in setup.py. With release 8.0 the pwb.py caller script checks
the Python version.

Change-Id: I1f2f32aade3c79a1c018e4175c15ac909da9160c
---
M pywikibot/scripts/wrapper.py
1 file changed, 13 insertions(+), 2 deletions(-)

Approvals:
  Matěj Suchánek: Looks good to me, approved
  jenkins-bot: Verified




diff --git a/pywikibot/scripts/wrapper.py b/pywikibot/scripts/wrapper.py
index abb5d5c..d253be4 100755
--- a/pywikibot/scripts/wrapper.py
+++ b/pywikibot/scripts/wrapper.py
@@ -316,8 +316,6 @@
         sys.exit(1)
 except ImportError as e:  # raised in textlib
     sys.exit(e)
-except SyntaxError as e:  # pragma: no cover
-    sys.exit(str(e) + '\nProbably outdated Python version')
 

 def find_alternates(filename, script_paths):

--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/909805
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.wikimedia.org/r/settings

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I1f2f32aade3c79a1c018e4175c15ac909da9160c
Gerrit-Change-Number: 909805
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Matěj Suchánek <[email protected]>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to