code: def int_0_inf(cls, string):
          '''Convert string to int.
  
          If ``inf`` is supplied, it returns ``0``.
          '''
          if string == 'inf':
              return 0
  
          try:
              value = int(string)
          except ValueError as error:
              raise argparse.ArgumentTypeError(error)
  
          if value < 0:
              raise argparse.ArgumentTypeError(_('Value must not be negative.'))
          else:
              return valuf int_0_inf(cls, string):
          '''Convert string to int.
  
          If ``inf`` is supplied, it returns ``0``.
          '''
          if string == 'inf':
              return 0
  
          try:
              value = int(string)
          except ValueError as error:
              raise argparse.ArgumentTypeError(error)
  
          if value < 0:
              raise argparse.ArgumentTypeError(_('Value must not be negative.'))
          else:
              return value
docs: Convert string to int.
  
          If ``inf`` is supplied, it returns ``0``.