diff options
author | Paul McGuire <ptmcg@austin.rr.com> | 2019-08-05 23:58:25 -0500 |
---|---|---|
committer | Paul McGuire <ptmcg@austin.rr.com> | 2019-08-05 23:58:25 -0500 |
commit | 123e83037b5de90fb964e96267bd60e90c70db19 (patch) | |
tree | 5695330948a33d42790b54d2049671e670729c87 /pyparsing.py | |
parent | 9ca5931db90a487085851fd9f847066fd48ae55b (diff) | |
download | pyparsing-git-123e83037b5de90fb964e96267bd60e90c70db19.tar.gz |
Fixed bug in CloseMatch where end location was incorrectly computed; and updated partial_gene_match.py example.
Diffstat (limited to 'pyparsing.py')
-rw-r--r-- | pyparsing.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pyparsing.py b/pyparsing.py index 92e2929..23b36dc 100644 --- a/pyparsing.py +++ b/pyparsing.py @@ -96,7 +96,7 @@ classes inherit from. Use the docstrings for examples of how to: """ __version__ = "2.5.0a1" -__versionTime__ = "06 Aug 2019 01:12 UTC" +__versionTime__ = "06 Aug 2019 04:55 UTC" __author__ = "Paul McGuire <ptmcg@users.sourceforge.net>" import string @@ -2843,7 +2843,7 @@ class CloseMatch(Token): if len(mismatches) > maxMismatches: break else: - loc = match_stringloc + 1 + loc = start + match_stringloc + 1 results = ParseResults([instring[start:loc]]) results['original'] = match_string results['mismatches'] = mismatches |