diff options
author | Paul McGuire <ptmcg@austin.rr.com> | 2019-03-30 02:58:29 -0500 |
---|---|---|
committer | Paul McGuire <ptmcg@austin.rr.com> | 2019-03-30 02:58:29 -0500 |
commit | fa741190622e2149e1dfd6c9e2565d87fcd484a6 (patch) | |
tree | 3c1239cd692483235ad1209bd42e791920219618 /pyparsing.py | |
parent | 6c46e5800c9c934c39a583294f0b17ceef7e35af (diff) | |
download | pyparsing-git-fa741190622e2149e1dfd6c9e2565d87fcd484a6.tar.gz |
Convert docstrings containing regex examples to raw string literals, to avoid Py3.8 SyntaxWarnings (#80)
Diffstat (limited to 'pyparsing.py')
-rw-r--r-- | pyparsing.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pyparsing.py b/pyparsing.py index af88035..f748087 100644 --- a/pyparsing.py +++ b/pyparsing.py @@ -94,7 +94,7 @@ classes inherit from. Use the docstrings for examples of how to: """ __version__ = "2.4.0" -__versionTime__ = "30 Mar 2019 05:34 UTC" +__versionTime__ = "30 Mar 2019 07:57 UTC" __author__ = "Paul McGuire <ptmcg@users.sourceforge.net>" import string @@ -3081,7 +3081,7 @@ class Regex(Token): return self.strRepr def sub(self, repl): - """ + r""" Return Regex with an attached parse action to transform the parsed result as if called using `re.sub(expr, repl, string) <https://docs.python.org/3/library/re.html#re.sub>`_. @@ -3441,7 +3441,7 @@ class GoToColumn(_PositionToken): class LineStart(_PositionToken): - """Matches if current position is at the beginning of a line within + r"""Matches if current position is at the beginning of a line within the parse string Example:: |