Code

Ticket #2677: simplejson-tweak.diff

File simplejson-tweak.diff, 618 bytes (added by Tom Tobin <korpios@…, 8 years ago)

tweak bundled simplejson

Line 
1Index: django/utils/simplejson/scanner.py
2===================================================================
3--- django/utils/simplejson/scanner.py  (revision 3676)
4+++ django/utils/simplejson/scanner.py  (working copy)
5@@ -3,12 +3,11 @@
6 """
7 import sre_parse, sre_compile, sre_constants
8 from sre_constants import BRANCH, SUBPATTERN
9-from sre import VERBOSE, MULTILINE, DOTALL
10 import re
11 
12 __all__ = ['Scanner', 'pattern']
13 
14-FLAGS = (VERBOSE | MULTILINE | DOTALL)
15+FLAGS = (re.VERBOSE | re.MULTILINE | re.DOTALL)
16 class Scanner(object):
17     def __init__(self, lexicon, flags=FLAGS):
18         self.actions = [None]