Skip to content
This repository was archived by the owner on Jun 16, 2021. It is now read-only.

Update pyparsing to 2.2.2#5

Closed
pyup-bot wants to merge 1 commit into
masterfrom
pyup-update-pyparsing-2.2.1-to-2.2.2
Closed

Update pyparsing to 2.2.2#5
pyup-bot wants to merge 1 commit into
masterfrom
pyup-update-pyparsing-2.2.1-to-2.2.2

Conversation

@pyup-bot

Copy link
Copy Markdown
Collaborator

This PR updates pyparsing from 2.2.1 to 2.2.2.

Changelog

2.2.2

-------------------------------
- Fixed bug in SkipTo, if a SkipTo expression that was skipping to
an expression that returned a list (such as an And), and the 
SkipTo was saved as a named result, the named result could be 
saved as a ParseResults - should always be saved as a string.
Issue 28, reported by seron.

- Added simple_unit_tests.py, as a collection of easy-to-follow unit 
tests for various classes and features of the pyparsing library. 
Primary intent is more to be instructional than actually rigorous 
testing. Complex tests can still be added in the unitTests.py file.

- New features added to the Regex class:
- optional asGroupList parameter, returns all the capture groups as
 a list
- optional asMatch parameter, returns the raw re.match result
- new sub(repl) method, which adds a parse action calling
 re.sub(pattern, repl, parsed_result). Simplifies creating 
 Regex expressions to be used with transformString. Like re.sub,
 repl may be an ordinary string (similar to using pyparsing's 
 replaceWith), or may contain references to capture groups by group 
 number, or may be a callable that takes an re match group and 
 returns a string.
 
 For instance:
     expr = pp.Regex(r"([Hh]\d):\s*(.*)").sub(r"<\1>\2</\1>")
     expr.transformString("h1: This is the title")

 will return
     <h1>This is the title</h1>

- Fixed omission of LICENSE file in source tarball, also added 
CODE_OF_CONDUCT.md per GitHub community standards.
Links

@pyup-bot

Copy link
Copy Markdown
Collaborator Author

Closing this in favor of #35

@pyup-bot pyup-bot closed this Oct 31, 2018
@bopo bopo deleted the pyup-update-pyparsing-2.2.1-to-2.2.2 branch October 31, 2018 06:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant