@classmethod<EOL><INDENT>def bytes_from_readable_size(C, size, suffix='<STR_LIT:B>'):<DEDENT>
s = re.split("<STR_LIT>" % ('<STR_LIT>'.join(C.SIZE_UNITS), suffix), size, flags=re.I)<EOL>bytes, unit = round(float(s[<NUM_LIT:1>])), s[<NUM_LIT:2>].upper()<EOL>while unit in C.SIZE_UNITS and C.SIZE_UNITS.index(unit) > <NUM_LIT:0>:<EOL><INDENT>bytes *= <NUM_LIT><EOL>unit = C.SIZE_UNITS[C.SIZE_UNITS.index(unit) - <NUM_LIT:1>]<EOL><DEDENT>return bytes<EOL>
given a readable_size (as produced by File.readable_size()), return the number of bytes.