Ticket #8725: regex_helper_r8761.diff
File regex_helper_r8761.diff, 584 bytes (added by , 16 years ago) |
---|
-
django/utils/regex_helper.py
74 74 # A "while" loop is used here because later on we need to be able to peek 75 75 # at the next character and possibly go around without consuming another 76 76 # one at the top of the loop. 77 ch, escaped = pattern_iter.next()78 77 try: 78 ch, escaped = pattern_iter.next() 79 79 while True: 80 80 if escaped: 81 81 result.append(ch)