def resource_name_package(name):
 if (not (PRN_SEPARATOR in name)):
  return None
 return name[:name.find(PRN_SEPARATOR)]

def resource_name_package ( name ) : if ( not ( PRN_SEPARATOR in name ) ) : return None return name [ : name . find ( PRN_SEPARATOR ) ]
pkg/typename -> pkg .