summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* Add document signoff and library book state examples;ptmcg2018-12-317-38/+277
|
* Update statemachine demo code to Py3Paul McGuire2018-12-313-29/+60
|
* Update Lucene grammar example, but remove from Travis-CI acceptance scriptsPaul McGuire2018-12-302-2/+5
|
* Remove print() call left in to test decoyPaul McGuire2018-12-301-1/+1
|
* Cleanup unit tests for better Py2 compatibility and current pyparsing usage: ↵Paul McGuire2018-12-301-83/+100
| | | | prefix string literals containing unicode with 'u'; replace all 'setResultsName' calls to use (name) form; replace all calls to builtin print() with Py2-3 compatible print_(), and add decoy print() method to catch incorrect calls
* Set PYTHONPATH before running examples in Travis-CIPaul McGuire2018-12-301-6/+6
|
* Update Travis-CI scripts to include examples; fix bug in runTests if ↵Paul McGuire2018-12-305-23/+34
| | | | postParse function returns None (or any non-str value)
* Update chemicalFormulas.py example to use new runTests postParse argument, ↵Paul McGuire2018-12-302-28/+49
| | | | add test cases that parse subscript integers
* Fix matching of dictOf with empty contents (Issue #53)ptmcg2018-12-283-2/+24
|
* Fix partial named results when And embedded in named MatchFirst or Orptmcg2018-12-2810-12/+550
|
* Merge pull request #60 from jdufresne/typoPaul McGuire2018-12-271-1/+1
|\ | | | | Fix typo: 'whre' -> 'where'
| * Fix typo: 'whre' -> 'where'Jon Dufresne2018-12-251-1/+1
| |
* | Merge pull request #61 from jdufresne/httpsPaul McGuire2018-12-2620-26/+26
|\ \ | |/ |/| Use HTTPS URLs where available in docs, examples, and comments
| * Use HTTPS URLs where available in docs, examples, and commentsJon Dufresne2018-12-2520-26/+26
|/
* Merge pull request #59 from jdufresne/psycoPaul McGuire2018-12-243-736/+710
|\ | | | | Remove mentions of 'psyco' from docs and examples
| * Merge branch 'master' into psycoPaul McGuire2018-12-245-713/+712
| |\ | |/ |/|
* | Merge pull request #58 from jdufresne/bare-exceptPaul McGuire2018-12-245-9/+9
|\ \ | | | | | | Replace bare 'except:' with 'except Exception;'
| * | Replace bare 'except:' with 'except Exception;'Jon Dufresne2018-12-245-9/+9
|/ / | | | | | | | | | | | | | | | | | | | | | | | | 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
| * Remove mentions of 'psyco' from docs and examplesJon Dufresne2018-12-243-30/+5
|/ | | | | | | | | | | | | | | The psyco package has been declared umaintained and dead. It is no longer receiving bug fixes including for security issues. From http://psyco.sourceforge.net/ > 12 March 2012 > > Psyco is unmaintained and dead. Please look at PyPy for the > state-of-the-art in JIT compilers for Python. Avoid recommending the use of an unmaintained package (since 2012). Users can continue to use PyPy for the latest and greatest in Python JIT.
* Merge pull request #57 from jdufresne/unusedPaul McGuire2018-12-2427-61/+46
|\ | | | | Remove unused imports throughout project
| * Remove unused imports throughout projectJon Dufresne2018-12-2427-61/+46
|/ | | | | | | | | | | | | Unused imports were discovered using flake8. By removing the unused imports, the code is a bit friendlier to new contributors as it is clearer what is being used and not simply leftover from previous refactoring. The flake8 command: $ flake8 . --select F401 http://flake8.pycqa.org/
* Merge changes from last PR, plus some more up-to-date coding styles and ↵Paul McGuire2018-12-231-5/+21
| | | | pyparsing features
* Merge pull request #55 from jdufresne/wsPaul McGuire2018-12-2387-1663/+1617
|\ | | | | Trim trailing white space throughout the project
| * Trim trailing white space throughout the projectJon Dufresne2018-12-2287-1663/+1617
|/ | | | | | 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.
* Merge pull request #54 from jdufresne/unused-importPaul McGuire2018-12-222-11/+5
|\ | | | | Remove distutils fallback and outdated comment
| * Remove distutils fallback and outdated commentJon Dufresne2018-12-222-11/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | setuptools includes a vendored version of pyparsing (and other dependencies). They are not install through traditional tools. Therefore, distutils is not required as fallback to facilitate setuptools. https://github.com/pypa/setuptools/blob/v40.6.3/setuptools/_vendor/pyparsing.py The Python documentation recommends against using distutils: https://docs.python.org/3/library/distutils.html > Most Python users will not want to use this module directly, but > instead use the cross-version tools maintained by the Python Packaging > Authority. In particular, setuptools is an enhanced alternative to > distutils that provides ... Also remove the unused imports.
* | Merge pull request #56 from jdufresne/cookiePaul McGuire2018-12-222-2/+2
|\ \ | |/ |/| Fix encoding cookie to use encoding "utf-8"
| * Fix encoding cookie to use encoding "utf-8"Jon Dufresne2018-12-222-2/+2
|/ | | | | | | | | | | | | | | The all caps "UTF-8" causes warnings or errors in some editors. "utf-8" is more widely recognized. For example, when opening files in Emacs, I see: > Warning (mule): Invalid coding system ‘UTF-8’ is specified > for the current buffer/file by the :coding tag. > It is highly recommended to fix it before writing to a file. > Really proceed with writing? (yes or no) I'm then promped before saving. The CPython source code uses the lowecase form.
* Fix runTests to strip leading BOM added for some unicode strings after ↵Paul McGuire2018-12-222-3/+4
| | | | splitlines(); fix typo in CHANGES when I renamed post_parse to postParse
* Fix postParse bug introduced in runTests; extended cleanup of unitTests ↵Paul McGuire2018-12-212-442/+518
| | | | (convert bare asserts to TestCase.assertTrue and assertEqual; remove trailing spaces throughout)
* Add support for optional postParse argument to ParserElement.runTestsPaul McGuire2018-12-213-8/+37
|
* Issue #51 Expanded the whitespace characters recognized by the White class ↵ptmcg2018-12-132-16/+56
| | | | to include all unicode defined spaces; added docstrings to unicode ranges
* Do true division when computing average (be sure to import from __future__ ↵ptmcg2018-11-231-2/+3
| | | | for Python2/3 cross-compat)
* Minor update to module welcome; add version to generated docsptmcg2018-11-222-3/+4
|
* Intern unicode range strings to prevent their listing in generated docs ↵ptmcg2018-11-222-16/+57
| | | | (pyparsing #50); fixed bug in composition of unicode_sets using multiple inheritance
* Merge remote-tracking branch 'origin/master'ptmcg2018-11-213-5/+6
|\
| * Merge pull request #49 from mcepl/docs_to_tarballPaul McGuire2018-11-213-5/+6
| |\ | | | | | | Not sure how I managed to screw up building documentation again.
| | * Not sure how I managed to screw up building documentation again.Matěj Cepl2018-11-213-5/+6
| |/
* | Convert sphinx inline code literal markups to less-verbose formptmcg2018-11-211-225/+242
|/
* More sphinx cleanupptmcg2018-11-211-143/+194
|
* Merge pull request #47 from mcepl/docs_to_tarballPaul McGuire2018-11-216-2534/+2539
|\ | | | | Docs to tarball and make tests running on py2k
| * Fix failing tests (both py2K and py3k)Matěj Cepl2018-11-213-8/+9
| | | | | | | | Fixes #48
| * Use unittest2 for python2 (Python 2.7 unittest doesn't have subTest)Matěj Cepl2018-11-211-1/+4
| |
| * Convert CRLF->CR in CHANGES, LICENSE, and add docs/ to tarballMatěj Cepl2018-11-213-2525/+2526
|/
* Update timestamp and CHANGES file to reflect mcepl improvementsptmcg2018-11-202-1/+5
|
* Merge pull request #46 from mcepl/44_distribute_testsPaul McGuire2018-11-2021-7439/+6661
|\ | | | | This looks great, thanks for the effort!
| * Forgot to remove docs/conf_old.pyMatěj Cepl2018-11-201-159/+0
| |
| * Reformatting of documentation strings.Matěj Cepl2018-11-201-364/+562
| |
| * Add some fixesMatěj Cepl2018-11-201-19/+40
| |
| * Update ~/.idea directory.Matěj Cepl2018-11-204-4/+29
| |