summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGES3
-rw-r--r--pyparsing.py6
2 files changed, 6 insertions, 3 deletions
diff --git a/CHANGES b/CHANGES
index 68dedcc..55c7372 100644
--- a/CHANGES
+++ b/CHANGES
@@ -29,6 +29,9 @@ Version 2.4.0 - March, 2019
- Address Py2 incompatibility in simpleUnitTests, plus explain() and
Forward str() cleanup; PRs graciously provided by eswald.
+- Fixed docstring with embedded '\w', which creates SyntaxWarnings in
+ Py3.8, issue #80.
+
Version 2.3.1 - January, 2019
-----------------------------
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::