From 499cd912ca36597df737df73c8f91ffab36c83d9 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Mon, 21 Oct 2013 08:52:21 -0400 Subject: Fixed E227 pep8 warnings --- django/utils/jslex.py | 2 +- django/utils/text.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'django/utils') 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) -- cgit v1.3