diff options
| author | Tim Graham <timograham@gmail.com> | 2013-10-21 08:52:21 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2013-10-21 08:52:21 -0400 |
| commit | 499cd912ca36597df737df73c8f91ffab36c83d9 (patch) | |
| tree | e8f7ec9751128d3f595d43c5d70a8aa0d2e93b0a /django | |
| parent | b289fcf1bfeaa717ed465b2529a275b61dc02d92 (diff) | |
Fixed E227 pep8 warnings
Diffstat (limited to 'django')
| -rw-r--r-- | django/template/defaultfilters.py | 10 | ||||
| -rw-r--r-- | django/utils/jslex.py | 2 | ||||
| -rw-r--r-- | django/utils/text.py | 2 |
3 files changed, 7 insertions, 7 deletions
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) |
