@classmethod<EOL><INDENT>def readable_size(C, bytes, suffix='<STR_LIT:B>', decimals=<NUM_LIT:1>, sep='<STR_LIT>'):<DEDENT>
if bytes is None:<EOL><INDENT>return<EOL><DEDENT>size = float(bytes)<EOL>for unit in C.SIZE_UNITS:<EOL><INDENT>if abs(size) < <NUM_LIT> or unit == C.SIZE_UNITS[-<NUM_LIT:1>]:<EOL><INDENT>return "<STR_LIT>".format(<EOL>size=size,<EOL>unit=unit,<EOL>suffix=suffix,<EOL>sep=sep,<EOL>decimals=C.SIZE_UNITS.index(unit) > <NUM_LIT:0> and decimals or <NUM_LIT:0>,  <EOL>)<EOL><DEDENT>size /= <NUM_LIT><EOL><DEDENT>
given a number of bytes, return the file size in readable units