1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Start attacking E231 violations

This commit is contained in:
Alex Gaynor
2013-10-24 10:30:03 -07:00
parent 382d324ccc
commit 9bf5610890
31 changed files with 92 additions and 90 deletions

View File

@@ -810,7 +810,7 @@ def filesizeformat(bytes):
"""
try:
bytes = float(bytes)
except (TypeError,ValueError,UnicodeDecodeError):
except (TypeError, ValueError, UnicodeDecodeError):
value = ungettext("%(size)d byte", "%(size)d bytes", 0) % {'size': 0}
return avoid_wrapping(value)