9898else :
9999 BROKEN_PIPE_ERROR = IOError
100100
101- __version__ = '0.7.7a '
101+ __version__ = '0.7.7 '
102102
103103# Pyparsing enablePackrat() can greatly speed up parsing, but problems have been seen in Python 3 in the past
104104pyparsing .ParserElement .enablePackrat ()
@@ -2305,7 +2305,7 @@ def _test_transcript(self, fname, transcript):
23052305 break
23062306 line_num += 1
23072307 expected = '' .join (expected )
2308-
2308+
23092309 # transform the expected text into a valid regular expression
23102310 expected = self ._transform_transcript_expected (expected )
23112311 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):
23182318 backslash = '\\ '
23192319 regex = ''
23202320 start = 0
2321-
2321+
23222322 while True :
23232323 (regex , first_slash_pos , start ) = self ._escaped_find (regex , s , start , False )
23242324 if first_slash_pos == - 1 :
@@ -2349,12 +2349,12 @@ def _transform_transcript_expected(self, s):
23492349 def _escaped_find (self , regex , s , start , in_regex ):
23502350 """
23512351 Find the next slash in {s} after {start} that is not preceded by a backslash.
2352-
2352+
23532353 If we find an escaped slash, add everything up to and including it to regex,
23542354 updating {start}. {start} therefore serves two purposes, tells us where to start
23552355 looking for the next thing, and also tells us where in {s} we have already
23562356 added things to {regex}
2357-
2357+
23582358 {in_regex} specifies whether we are currently searching in a regex, we behave
23592359 differently if we are or if we aren't.
23602360 """
0 commit comments