summaryrefslogtreecommitdiff
path: root/examples/btpyparse.py
Commit message (Collapse)AuthorAgeFilesLines
* Update __versionTime__; blacken core code and examplesptmcg2021-08-011-2/+2
|
* Blacken the project (#141)Jon Dufresne2019-10-311-23/+32
|
* Use pyupgrade to upgrade the code to use Python3 conventions (#138)Jon Dufresne2019-10-241-1/+1
| | | | | | | | | | | | 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.
* Py3 cleanup: Remove unnecessary __ne__ method (#140)Jon Dufresne2019-10-171-2/+0
| | | | | | | | | | Unlink Python 2, in Python 3, __ne__ defaults to the inverse of the __eq__ method. Can remove the definitions that follow this default. From the Python docs https://docs.python.org/3/reference/datamodel.html#object.__ne__ > By default, __ne__() delegates to __eq__() and inverts the result > unless it is NotImplemented.
* Move src to rootCengiz Kaygusuz2017-11-201-0/+129