Ticket #2677: simplejson-tweak.diff
File simplejson-tweak.diff, 618 bytes (added by , 18 years ago) |
---|
-
django/utils/simplejson/scanner.py
3 3 """ 4 4 import sre_parse, sre_compile, sre_constants 5 5 from sre_constants import BRANCH, SUBPATTERN 6 from sre import VERBOSE, MULTILINE, DOTALL7 6 import re 8 7 9 8 __all__ = ['Scanner', 'pattern'] 10 9 11 FLAGS = ( VERBOSE | MULTILINE |DOTALL)10 FLAGS = (re.VERBOSE | re.MULTILINE | re.DOTALL) 12 11 class Scanner(object): 13 12 def __init__(self, lexicon, flags=FLAGS): 14 13 self.actions = [None]