def check_version(version):
 if isinstance(version, string_types):
  version = tuple(map(int, version.split('.')))
 if (version > version_info):
  str_version = '.'.join(map(str, version))
  raise ValueError(("pgi version '%s' requested, '%s' available" % (str_version, __version__)))

def check_version ( version ) : if isinstance ( version , string_types ) : version = tuple ( map ( int , version . split ( '.' ) ) ) if ( version > version_info ) : str_version = '.' . join ( map ( str , version ) ) raise ValueError ( ( "pgi version '%s' requested, '%s' available" % ( str_version , __version__ ) ) )
checks version of cuckoo .