Ticket #8725: regex_helper_r8761.diff

File regex_helper_r8761.diff, 584 bytes (added by oggy, 16 years ago)
  • django/utils/regex_helper.py

     
    7474    # A "while" loop is used here because later on we need to be able to peek
    7575    # at the next character and possibly go around without consuming another
    7676    # one at the top of the loop.
    77     ch, escaped = pattern_iter.next()
    7877    try:
     78        ch, escaped = pattern_iter.next()
    7979        while True:
    8080            if escaped:
    8181                result.append(ch)
Back to Top