summaryrefslogtreecommitdiff
path: root/pyparsing/common.py
diff options
context:
space:
mode:
authorptmcg <ptmcg@austin.rr.com>2021-08-08 07:45:27 -0500
committerptmcg <ptmcg@austin.rr.com>2021-08-08 07:45:27 -0500
commitd55aad0afb292030724e6849830060b740f93d53 (patch)
tree84c42aaccdf8baaa128f241de002b2f396955b17 /pyparsing/common.py
parentb0b7d980cfaebc22b3acbfd8c2f53e5971ea9302 (diff)
downloadpyparsing-git-d55aad0afb292030724e6849830060b740f93d53.tar.gz
Sweep code for calls using legacy names
Diffstat (limited to 'pyparsing/common.py')
-rw-r--r--pyparsing/common.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/pyparsing/common.py b/pyparsing/common.py
index 4bcb0a6..101668c 100644
--- a/pyparsing/common.py
+++ b/pyparsing/common.py
@@ -332,14 +332,14 @@ class pyparsing_common:
More info at the pyparsing wiki page
"""
- return pyparsing_common._html_stripper.transformString(tokens[0])
+ return pyparsing_common._html_stripper.transform_string(tokens[0])
_commasepitem = (
Combine(
OneOrMore(
~Literal(",")
+ ~LineEnd()
- + Word(printables, excludeChars=",")
+ + Word(printables, exclude_chars=",")
+ Optional(White(" \t") + ~FollowedBy(LineEnd() | ","))
)
)
@@ -347,9 +347,9 @@ class pyparsing_common:
.set_name("commaItem")
)
comma_separated_list = delimited_list(
- Optional(quotedString.copy() | _commasepitem, default="")
+ Optional(quoted_string.copy() | _commasepitem, default="")
).set_name("comma separated list")
- """Predefined expression of 1 or more printable words or quoted strin gs, separated by commas."""
+ """Predefined expression of 1 or more printable words or quoted strings, separated by commas."""
upcase_tokens = staticmethod(token_map(lambda t: t.upper()))
"""Parse action to convert tokens to upper case."""