Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed #2677 -- Removed the need to import sre and hence avoid a

DeprecationWarning. Thanks, Tom Tobin.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@3814 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit b05e5501a455a86e577e70617ca0f376041568c9 1 parent 8f7ab8e
@malcolmt malcolmt authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  django/utils/simplejson/scanner.py
View
3  django/utils/simplejson/scanner.py
@@ -3,12 +3,11 @@
"""
import sre_parse, sre_compile, sre_constants
from sre_constants import BRANCH, SUBPATTERN
-from sre import VERBOSE, MULTILINE, DOTALL
import re
__all__ = ['Scanner', 'pattern']
-FLAGS = (VERBOSE | MULTILINE | DOTALL)
+FLAGS = (re.VERBOSE | re.MULTILINE | re.DOTALL)
class Scanner(object):
def __init__(self, lexicon, flags=FLAGS):
self.actions = [None]
Please sign in to comment.
Something went wrong with that request. Please try again.