diff options
author | Paul McGuire <paulmcg@infinite.io> | 2019-11-05 08:50:43 -0600 |
---|---|---|
committer | Paul McGuire <paulmcg@infinite.io> | 2019-11-05 08:50:43 -0600 |
commit | d78e9319916c9bc7853e4e16a96c8bae56272b45 (patch) | |
tree | 1bb2e78afff309ae87902689cfbe58965e2a2ede /pyparsing.py | |
parent | 89be5c81b106f4fed9a7b815841bdcf85f870297 (diff) | |
download | pyparsing-git-d78e9319916c9bc7853e4e16a96c8bae56272b45.tar.gz |
Unresolved symbol reference in 2.4.3 release was masked by stdout buffering in unit tests
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 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 <ptmcg@users.sourceforge.net>" 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: |