diff options
author | Matt Carmody <33763384+mattcarmody@users.noreply.github.com> | 2020-04-03 22:13:05 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-03 17:13:05 -0500 |
commit | 61af31e9b4c29be7d88d5a7ff75252bc9ab55253 (patch) | |
tree | 92982e9923221ed0df2e85a89ae4af4a99ff5385 | |
parent | 7eae92192cd93aa1bf1205f4a141d89414aef937 (diff) | |
download | pyparsing-git-61af31e9b4c29be7d88d5a7ff75252bc9ab55253.tar.gz |
Remove deprecated space escapes from docstrings (#202)
-rw-r--r-- | pyparsing/core.py | 8 | ||||
-rw-r--r-- | pyparsing/helpers.py | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/pyparsing/core.py b/pyparsing/core.py index dec64c7..5e2d977 100644 --- a/pyparsing/core.py +++ b/pyparsing/core.py @@ -447,7 +447,7 @@ class ParserElement: Note: the default parsing behavior is to expand tabs in the input string before starting the parsing process. See :class:`parseString` for more - information on parsing strings containing ``<TAB>``\ s, and suggested + information on parsing strings containing ``<TAB>`` s, and suggested methods to maintain a consistent view of the parsed string, the parse location, and line and column positions within the parsed string. @@ -1367,7 +1367,7 @@ class ParserElement: def parseWithTabs(self): """ - Overrides default behavior to expand ``<TAB>``\ s to spaces before parsing the input string. + Overrides default behavior to expand ``<TAB>`` s to spaces before parsing the input string. Must be called before ``parseString`` when the input grammar contains elements that match ``<TAB>`` characters. """ @@ -3093,7 +3093,7 @@ class ParseExpression(ParserElement): class And(ParseExpression): """ - Requires all given :class:`ParseExpression`\ s to be found in the given order. + Requires all given :class:`ParseExpression` s to be found in the given order. Expressions may be separated by whitespace. May be constructed using the ``'+'`` operator. May also be constructed using the ``'-'`` operator, which will @@ -3469,7 +3469,7 @@ class MatchFirst(ParseExpression): class Each(ParseExpression): - """Requires all given :class:`ParseExpression`\ s to be found, but in + """Requires all given :class:`ParseExpression` s to be found, but in any order. Expressions may be separated by whitespace. May be constructed using the ``'&'`` operator. diff --git a/pyparsing/helpers.py b/pyparsing/helpers.py index a7ca83d..d710d78 100644 --- a/pyparsing/helpers.py +++ b/pyparsing/helpers.py @@ -135,7 +135,7 @@ def matchPreviousExpr(expr): def oneOf(strs, caseless=False, useRegex=True, asKeyword=False): - """Helper to quickly define a set of alternative :class:`Literal`\ s, + """Helper to quickly define a set of alternative :class:`Literal` s, and makes sure to do longest-first testing when there is a conflict, regardless of the input order, but returns a :class:`MatchFirst` for best performance. |