diff options
author | Paul McGuire <ptmcg@austin.rr.com> | 2016-08-05 19:38:41 +0000 |
---|---|---|
committer | Paul McGuire <ptmcg@austin.rr.com> | 2016-08-05 19:38:41 +0000 |
commit | ec6938176bc363985bf920b650a3d0ee5653f422 (patch) | |
tree | a9982e271a5420bb4cf7f3d5ca21c8c3c3ebaa6e /src/pyparsing.py | |
parent | d17a58f510447b626e5cfcffcca71203513ccebc (diff) | |
download | pyparsing-git-ec6938176bc363985bf920b650a3d0ee5653f422.tar.gz |
Fixed bug in upcaseTokens and downcaseTokens introduced in 2.1.5, when the parse action was used in conjunction with results names
Diffstat (limited to 'src/pyparsing.py')
-rw-r--r-- | src/pyparsing.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pyparsing.py b/src/pyparsing.py index 29c9d14..088cf26 100644 --- a/src/pyparsing.py +++ b/src/pyparsing.py @@ -58,7 +58,7 @@ The pyparsing module handles some of the problems that are typically vexing when """
__version__ = "2.1.6"
-__versionTime__ = "05 Aug 2016 18:11 UTC"
+__versionTime__ = "05 Aug 2016 19:32 UTC"
__author__ = "Paul McGuire <ptmcg@users.sourceforge.net>"
import string
@@ -3729,7 +3729,7 @@ def tokenMap(func, *args): parsed data to an integer using base 16.
"""
def pa(s,l,t):
- t[:] = [func(tokn, *args) for tokn in t]
+ return [func(tokn, *args) for tokn in t]
try:
func_name = getattr(func, '__name__',
|