Xqt added a comment.
> I would like you to see what is it like if I use this in python 2.7.16. > Python3 input cannot accept scripts, but python 2.7.16 accepts scripts. Cannot follow what you mean with this Statement. I also cannot find any error in that samle given by your file e.g. >>> a = input() s Traceback (... The behaviour is as expected because s is not defined previously. Try a instead because there is an assingment from input. Anyway `pwb.py` does not reach any Input because the script is exited in line 186 when running with unsupported Python version. `setup.py` raises the RuntimeError in line 54 if a wrong Python version is used. The goal is to ensure these two scripts should not raise a syntaxError e.g. by using unsupported code parts like type hints or other code parts. Therefore a CI test can be implemented. TASK DETAIL https://phabricator.wikimedia.org/T259991 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: NullPointer, Xqt Cc: NullPointer, Aklapper, pywikibot-bugs-list, Dvorapa, Xqt, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista, Rxy
_______________________________________________ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs