summaryrefslogtreecommitdiff
path: root/examples/chemicalFormulas.py
Commit message (Collapse)AuthorAgeFilesLines
* change some lambdas to explicit methods for clarity (see discussion in ↵ptmcg2020-04-261-9/+27
| | | | #207); deleted duplicated examples (commit *all* changes this time)
* Blacken the project (#141)Jon Dufresne2019-10-311-20/+40
|
* Use pyupgrade to upgrade the code to use Python3 conventions (#138)Jon Dufresne2019-10-241-6/+5
| | | | | | | | | | | | 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.
* Update examples to reflect newer pyparsing and coding styles, and use '...' ↵ptmcg2019-07-051-14/+13
| | | | to illustrate repetition and skipping
* Add enumerated place holders for strings that invoke str.format(), for Py2 ↵ptmcg2019-01-091-4/+4
| | | | compatibility
* Update chemicalFormulas.py example to use new runTests postParse argument, ↵Paul McGuire2018-12-301-27/+48
| | | | add test cases that parse subscript integers
* Trim trailing white space throughout the projectJon Dufresne2018-12-221-4/+1
| | | | | | 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.
* Move src to rootCengiz Kaygusuz2017-11-201-0/+67