def package_resource_name(name):
 if (PRN_SEPARATOR in name):
  val = tuple(name.split(PRN_SEPARATOR))
  if (len(val) != 2):
   raise ValueError(('invalid name [%s]' % name))
  else:
   return val
 else:
  return ('', name)

def package_resource_name ( name ) : if ( PRN_SEPARATOR in name ) : val = tuple ( name . split ( PRN_SEPARATOR ) ) if ( len ( val ) != 2 ) : raise ValueError ( ( 'invalid name [%s]' % name ) ) else : return val else : return ( '' , name )
split a name into its package and resource name parts .