def ensure_version(min_version):
 if (type(min_version) == str):
  min_version = python_version(min_version)
 elif (type(min_version) == int):
  pass
 else:
  raise TypeError, ('version %s is not a string or an integer' % min_version)
 if (_sys.hexversion < min_version):
  raise RuntimeError, ('This program requires Python version "%s" or better, but the current Python version is "%s".' % (python_version_string(min_version), python_version_string(sys.hexversion)))

def ensure_version ( min_version ) : if ( type ( min_version ) == str ) : min_version = python_version ( min_version ) elif ( type ( min_version ) == int ) : pass else : raise TypeError , ( 'version %s is not a string or an integer' % min_version ) if ( _sys . hexversion < min_version ) : raise RuntimeError , ( 'This program requires Python version "%s" or better, but the current Python version is "%s".' % ( python_version_string ( min_version ) , python_version_string ( sys . hexversion ) ) )
raise a runtimeerror if the current python version isnt at least min_version .