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/template/defaultfilters.py | 10 +++++----- django/utils/jslex.py | 2 +- django/utils/text.py | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) (limited to 'django') diff --git a/django/template/defaultfilters.py b/django/template/defaultfilters.py index 76c0121126..a110ad5bb9 100644 --- a/django/template/defaultfilters.py +++ b/django/template/defaultfilters.py @@ -814,11 +814,11 @@ def filesizeformat(bytes): filesize_number_format = lambda value: formats.number_format(round(value, 1), 1) - KB = 1<<10 - MB = 1<<20 - GB = 1<<30 - TB = 1<<40 - PB = 1<<50 + KB = 1 << 10 + MB = 1 << 20 + GB = 1 << 30 + TB = 1 << 40 + PB = 1 << 50 if bytes < KB: value = ungettext("%(size)d byte", "%(size)d bytes", bytes) % {'size': bytes} 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