summaryrefslogtreecommitdiff
path: root/django/utils
diff options
context:
space:
mode:
Diffstat (limited to 'django/utils')
-rw-r--r--django/utils/jslex.py2
-rw-r--r--django/utils/text.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/django/utils/jslex.py b/django/utils/jslex.py
index 378c8b2375..5b32deb0b8 100644
--- a/django/utils/jslex.py
+++ b/django/utils/jslex.py
@@ -41,7 +41,7 @@ class Lexer(object):
groupid = "t%d" % tok.id
self.toks[groupid] = tok
parts.append("(?P<%s>%s)" % (groupid, tok.regex))
- self.regexes[state] = re.compile("|".join(parts), re.MULTILINE|re.VERBOSE)
+ self.regexes[state] = re.compile("|".join(parts), re.MULTILINE | re.VERBOSE)
self.state = first
diff --git a/django/utils/text.py b/django/utils/text.py
index 66a18b75d6..3c3e435732 100644
--- a/django/utils/text.py
+++ b/django/utils/text.py
@@ -22,7 +22,7 @@ capfirst = lambda x: x and force_text(x)[0].upper() + force_text(x)[1:]
capfirst = allow_lazy(capfirst, six.text_type)
# Set up regular expressions
-re_words = re.compile(r'<.*?>|((?:\w[-\w]*|&.*?;)+)', re.U|re.S)
+re_words = re.compile(r'<.*?>|((?:\w[-\w]*|&.*?;)+)', re.U | re.S)
re_tag = re.compile(r'<(/)?([^ ]+?)(?:(\s*/)| .*?)?>', re.S)