From d78e9319916c9bc7853e4e16a96c8bae56272b45 Mon Sep 17 00:00:00 2001 From: Paul McGuire Date: Tue, 5 Nov 2019 08:50:43 -0600 Subject: Unresolved symbol reference in 2.4.3 release was masked by stdout buffering in unit tests --- pyparsing.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pyparsing.py') diff --git a/pyparsing.py b/pyparsing.py index 7e35ed2..a0a1147 100644 --- a/pyparsing.py +++ b/pyparsing.py @@ -95,8 +95,8 @@ classes inherit from. Use the docstrings for examples of how to: namespace class """ -__version__ = "2.4.3" -__versionTime__ = "21 Oct 2019 23:43 UTC" +__version__ = "2.4.4" +__versionTime__ = "05 Nov 2019 14:15 UTC" __author__ = "Paul McGuire " import string @@ -5517,7 +5517,7 @@ def oneOf(strs, caseless=False, useRegex=True, asKeyword=False): # ~ print (strs, "->", "|".join([_escapeRegexChars(sym) for sym in symbols])) try: if len(symbols) == len("".join(symbols)): - return Regex("[%s]" % "".join(_collapseAndEscapeRegexRangeChars(sym) for sym in symbols)).setName(' | '.join(symbols)) + return Regex("[%s]" % "".join(_escapeRegexRangeChars(sym) for sym in symbols)).setName(' | '.join(symbols)) else: return Regex("|".join(re.escape(sym) for sym in symbols)).setName(' | '.join(symbols)) except Exception: -- cgit v1.2.1