98
98
else :
99
99
BROKEN_PIPE_ERROR = IOError
100
100
101
- __version__ = '0.7.7a '
101
+ __version__ = '0.7.7 '
102
102
103
103
# Pyparsing enablePackrat() can greatly speed up parsing, but problems have been seen in Python 3 in the past
104
104
pyparsing .ParserElement .enablePackrat ()
@@ -2305,7 +2305,7 @@ def _test_transcript(self, fname, transcript):
2305
2305
break
2306
2306
line_num += 1
2307
2307
expected = '' .join (expected )
2308
-
2308
+
2309
2309
# transform the expected text into a valid regular expression
2310
2310
expected = self ._transform_transcript_expected (expected )
2311
2311
message = '\n File {}, line {}\n Command was:\n {}\n Expected:\n {}\n Got:\n {}\n ' .format (
@@ -2318,7 +2318,7 @@ def _transform_transcript_expected(self, s):
2318
2318
backslash = '\\ '
2319
2319
regex = ''
2320
2320
start = 0
2321
-
2321
+
2322
2322
while True :
2323
2323
(regex , first_slash_pos , start ) = self ._escaped_find (regex , s , start , False )
2324
2324
if first_slash_pos == - 1 :
@@ -2349,12 +2349,12 @@ def _transform_transcript_expected(self, s):
2349
2349
def _escaped_find (self , regex , s , start , in_regex ):
2350
2350
"""
2351
2351
Find the next slash in {s} after {start} that is not preceded by a backslash.
2352
-
2352
+
2353
2353
If we find an escaped slash, add everything up to and including it to regex,
2354
2354
updating {start}. {start} therefore serves two purposes, tells us where to start
2355
2355
looking for the next thing, and also tells us where in {s} we have already
2356
2356
added things to {regex}
2357
-
2357
+
2358
2358
{in_regex} specifies whether we are currently searching in a regex, we behave
2359
2359
differently if we are or if we aren't.
2360
2360
"""
0 commit comments