parameters: (string)
return_statement: return version
docstring: Converts a version string into a tuple
docstring_summary: Converts a version string into a tuple
docstring_tokens: Converts a version string into a tuple
function: def str2ver(string):
      '''
      Converts a version string into a tuple
      '''
      try:
          version = tuple(int(v) for v in string.split('.'))
          if len(version) is not 3:
              raise ValueError()
      except ValueError:
          raise argparse.ArgumentTypeError(
              'please provide a three digit version string')
      return version
function_tokens: def str2ver ( string ) : try : version = tuple ( int ( v ) for v in string . split ( '.' ) ) if len ( version ) is not 3 : raise ValueError ( ) except ValueError : raise argparse . ArgumentTypeError ( 'please provide a three digit version string' ) return version