Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Add enumerated place holders for strings that invoke str.format(), for Py2 ↵ | ptmcg | 2019-01-09 | 1 | -10/+12 | |
| | | | | compatibility | |||||
* | Unit test to test fix for issue #65 | ptmcg | 2019-01-07 | 1 | -0/+14 | |
| | ||||||
* | Add experimental ParseException.explain() method, to return a multiline ↵ | Paul McGuire | 2019-01-05 | 1 | -4142/+4181 | |
| | | | | string showing the parse expressions leading to a parsing failure | |||||
* | Remove print() call left in to test decoy | Paul McGuire | 2018-12-30 | 1 | -1/+1 | |
| | ||||||
* | Cleanup unit tests for better Py2 compatibility and current pyparsing usage: ↵ | Paul McGuire | 2018-12-30 | 1 | -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 | |||||
* | Fix matching of dictOf with empty contents (Issue #53) | ptmcg | 2018-12-28 | 1 | -0/+19 | |
| | ||||||
* | Fix partial named results when And embedded in named MatchFirst or Or | ptmcg | 2018-12-28 | 1 | -0/+25 | |
| | ||||||
* | Replace bare 'except:' with 'except Exception;' | Jon Dufresne | 2018-12-24 | 1 | -4/+4 | |
| | | | | | | | | | | | | | 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 unused imports throughout project | Jon Dufresne | 2018-12-24 | 1 | -13/+10 | |
| | | | | | | | | | | | | | 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/ | |||||
* | Trim trailing white space throughout the project | Jon Dufresne | 2018-12-22 | 1 | -223/+223 | |
| | | | | | | 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. | |||||
* | Fix encoding cookie to use encoding "utf-8" | Jon Dufresne | 2018-12-22 | 1 | -1/+1 | |
| | | | | | | | | | | | | | | | 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 postParse bug introduced in runTests; extended cleanup of unitTests ↵ | Paul McGuire | 2018-12-21 | 1 | -439/+515 | |
| | | | | (convert bare asserts to TestCase.assertTrue and assertEqual; remove trailing spaces throughout) | |||||
* | Add support for optional postParse argument to ParserElement.runTests | Paul McGuire | 2018-12-21 | 1 | -1/+17 | |
| | ||||||
* | Intern unicode range strings to prevent their listing in generated docs ↵ | ptmcg | 2018-11-22 | 1 | -3/+32 | |
| | | | | (pyparsing #50); fixed bug in composition of unicode_sets using multiple inheritance | |||||
* | Add support for combining unicode_sets using multiple inheritance | Paul McGuire | 2018-11-17 | 1 | -2/+6 | |
| | ||||||
* | Add unit test for named ParseResults combined with Dict-created named ↵ | ptmcg | 2018-11-13 | 1 | -3/+20 | |
| | | | | results in the same Group; removed reference to UnicodeTests, which subsetted the tests that were actually being run | |||||
* | Added unicode sets for LatinA and LatinB ranges | ptmcg | 2018-11-09 | 1 | -0/+19 | |
| | ||||||
* | assertRaises not compatible in Py2.6pyparsing_2.3.0 | ptmcg | 2018-10-31 | 1 | -9/+10 | |
| | ||||||
* | Add unit test for indentedBlock expression | ptmcg | 2018-10-30 | 1 | -0/+37 | |
| | ||||||
* | Clean up old cruft from unit tests | ptmcg | 2018-10-30 | 1 | -30/+2 | |
| | ||||||
* | Undefined name: file() was removed in Python 3 | cclauss | 2018-10-30 | 1 | -1/+1 | |
| | | | | | | | __file()__ was removed as a builtin in Python 3 so this PR advocates the use of __open()__ instead. Also note that four lines above, __testclass__ is an _undefined name_ and perhaps __testclasses__ should be used in its place. Undefined names have the potential to raise NameError at runtime. | |||||
* | Add Py2 unicodeisms | ptmcg | 2018-10-27 | 1 | -2/+2 | |
| | ||||||
* | Add unicode character ranges by name | ptmcg | 2018-10-27 | 1 | -0/+14 | |
| | ||||||
* | Add unit test for ParserElement.setBreak() | ptmcg | 2018-10-27 | 1 | -0/+24 | |
| | ||||||
* | Fix extra nesting level in ParseResults when defining results name in ↵ | ptmcg | 2018-10-12 | 1 | -0/+15 | |
| | | | | another non-Group named expression | |||||
* | Better description of bug and fix for Issue #22 | ptmcg | 2018-10-07 | 1 | -1/+10 | |
| | ||||||
* | Fix Issue #22, test for returning given parse results from a parse action; ↵ | ptmcg | 2018-10-07 | 1 | -83/+100 | |
| | | | | convert pyparsing.xxx references to pp.xxx references in unitTests.py | |||||
* | Added PrecededBy class (Issue#30); updated FollowedBy to accept results ↵ | ptmcg | 2018-10-06 | 1 | -4/+48 | |
| | | | | names on the lookahead expression; added inline example for NotAny; added Char class | |||||
* | Issue #4 - add special handling for IndexError exceptions raised in user ↵ | ptmcg | 2018-09-30 | 1 | -0/+22 | |
| | | | | parse actions | |||||
* | tighten up error checking in Regex.sub() | Paul McGuire | 2018-09-29 | 1 | -0/+27 | |
| | ||||||
* | Add Regex.sub() method, and asMatch and asGroupList parameters | Paul McGuire | 2018-09-29 | 1 | -0/+45 | |
| | ||||||
* | Fix tab-space inconsistency wrought by misconfigured editor | Paul McGuire | 2018-09-24 | 1 | -7/+7 | |
| | ||||||
* | Issue #28, bug in SkipTo when skipping to an expr that saves as a list | Paul McGuire | 2018-09-24 | 1 | -0/+8 | |
| | ||||||
* | Stage for 2.2.1 release; add Getting Started section to module docstring; ↵ | ptmcg | 2018-09-17 | 1 | -1/+14 | |
| | | | | fix Literal/Keyword index error bug | |||||
* | Move src to root | Cengiz Kaygusuz | 2017-11-20 | 1 | -0/+3675 | |