def human_filesize(i):
bytes = float(i)<EOL>if bytes < <NUM_LIT>:<EOL><INDENT>return u"<STR_LIT>" % (bytes, bytes != <NUM_LIT:1> and u"<STR_LIT:s>" or u"<STR_LIT>")<EOL><DEDENT>if bytes < <NUM_LIT> * <NUM_LIT>:<EOL><INDENT>return u"<STR_LIT>" % (bytes / <NUM_LIT>)<EOL><DEDENT>if bytes < <NUM_LIT> * <NUM_LIT> * <NUM_LIT>:<EOL><INDENT>return u"<STR_LIT>" % (bytes / (<NUM_LIT> * <NUM_LIT>))<EOL><DEDENT>return u"<STR_LIT>" % (bytes / (<NUM_LIT> * <NUM_LIT> * <NUM_LIT>))<EOL>
'human-readable' file size (i.e. 13 KB, 4.1 MB, 102 bytes, etc).