def human(self, size, base=<NUM_LIT:1000>, units='<STR_LIT>'):
sign = '<STR_LIT:+>' if size >= <NUM_LIT:0> else '<STR_LIT:->'<EOL>size = abs(size)<EOL>if size < <NUM_LIT:1000>:<EOL><INDENT>return '<STR_LIT>' % (sign, size)<EOL><DEDENT>for i, suffix in enumerate(units):<EOL><INDENT>unit = <NUM_LIT:1000> ** (i + <NUM_LIT:1>)<EOL>if size < unit:<EOL><INDENT>return ('<STR_LIT>' % (<EOL>sign,<EOL>size / float(unit) * base,<EOL>suffix,<EOL>)).strip()<EOL><DEDENT><DEDENT>raise OverflowError<EOL>
Convert the input ``size`` to human readable, short form.