summaryrefslogtreecommitdiff
path: root/examples/shapes.py
Commit message (Collapse)AuthorAgeFilesLines
* change some lambdas to explicit methods for clarity (see discussion in ↵ptmcg2020-04-261-1/+5
| | | | #207); deleted duplicated examples (commit *all* changes this time)
* Blacken the project (#141)Jon Dufresne2019-10-311-7/+15
|
* Use pyupgrade to upgrade the code to use Python3 conventions (#138)Jon Dufresne2019-10-241-2/+2
| | | | | | | | | | | | 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.
* Code style updates; remove deprecated methodsPaul McGuire2019-08-051-64/+64
|
* Add enumerated place holders for strings that invoke str.format(), for Py2 ↵ptmcg2019-01-091-1/+1
| | | | compatibility
* Trim trailing white space throughout the projectJon Dufresne2018-12-221-2/+2
| | | | | | 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-1/+1
|
* Move src to rootCengiz Kaygusuz2017-11-201-0/+64