summaryrefslogtreecommitdiff
path: root/examples/pythonGrammarParser.py
Commit message (Collapse)AuthorAgeFilesLines
* Add enumerated place holders for strings that invoke str.format(), for Py2 ↵ptmcg2019-01-091-2/+2
| | | | compatibility
* Replace bare 'except:' with 'except Exception;'Jon Dufresne2018-12-241-1/+1
| | | | | | | | | | | | | Catching all exceptions is generally considered a bad practice under most circumstances as it will also catch KeyboardInterrupt and SystemExit. These special cases should be raised to the interpreter to allow the Python process to exit. This fix complies with pycodestyle's error code E722: https://pycodestyle.readthedocs.io/en/latest/intro.html#error-codes > do not use bare except, specify exception instead
* Trim trailing white space throughout the projectJon Dufresne2018-12-221-8/+8
| | | | | | Many editors clean up trailing white space on save. By removing it all in one go, it helps keep future diffs cleaner by avoiding spurious white space changes on unrelated lines.
* Upgrade Python syntax with pyupgradeHugo2018-08-211-2/+2
|
* Move src to rootCengiz Kaygusuz2017-11-201-0/+220