PEP8 cleanups, further removal of unused code

This commit is contained in:
Roberto Rosario
2014-10-21 19:28:52 -04:00
parent ce39a775ee
commit 2ea48bd1ba
24 changed files with 20 additions and 69 deletions

View File

@@ -87,7 +87,7 @@ def return_attrib(obj, attrib, arguments=None):
# http://snippets.dzone.com/posts/show/5434
# http://snippets.dzone.com/user/jakob
def pretty_size(size, suffixes=None):
suffixes = suffixes if not suffixes is None else [
suffixes = suffixes or [
(u'B', 1024L), (u'K', 1048576L), (u'M', 1073741824L),
(u'G', 1099511627776L), (u'T', 1125899906842624L)
]