| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
selected examples
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
The pyupgrade project is available at
https://github.com/asottile/pyupgrade and can be installed through pip.
The pyupgrade tool automatically upgrades syntax for newer versions of
the language. As pyparsing is now Python 3 only, can apply some cleanups
and simplifications. Ran the tool using the following command:
$ find . -name \*.py -exec pyupgrade --py3-plus {} \;
For now, pyparsing.py was skipped while it is refactored to a package.
|
|
|
|
|
| |
Discovered using the command:
flake8 --select F401 .
|
| |
|
|
|
|
| |
to illustrate repetition and skipping
|
|
|
|
| |
postParse function returns None (or any non-str value)
|
|
|
|
|
|
| |
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.
|
|
|