code: def int_bytes(cls, string):
          '''Convert string describing size to int.'''
          if string[-1] in ('k', 'm'):
              value = cls.int_0_inf(string[:-1])
              unit = string[-1]
              if unit == 'k':
                  value *= 2 ** 10
              else:
                  value *= 2 ** 20
              return value
          else:
              return cls.int_0_inf(stringf int_bytes(cls, string):
          '''Convert string describing size to int.'''
          if string[-1] in ('k', 'm'):
              value = cls.int_0_inf(string[:-1])
              unit = string[-1]
              if unit == 'k':
                  value *= 2 ** 10
              else:
                  value *= 2 ** 20
              return value
          else:
              return cls.int_0_inf(string)
docs: Convert string describing size to int.