From 123e83037b5de90fb964e96267bd60e90c70db19 Mon Sep 17 00:00:00 2001 From: Paul McGuire Date: Mon, 5 Aug 2019 23:58:25 -0500 Subject: Fixed bug in CloseMatch where end location was incorrectly computed; and updated partial_gene_match.py example. --- pyparsing.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pyparsing.py') 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 " 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 -- cgit v1.2.1