def _nssplit(qualifiedName):
 fields = qualifiedName.split(':', 1)
 if (len(fields) == 2):
  return fields
 else:
  return (None, fields[0])

def _nssplit ( qualifiedName ) : fields = qualifiedName . split ( ':' , 1 ) if ( len ( fields ) == 2 ) : return fields else : return ( None , fields [ 0 ] )
split a qualified name into namespace part and local part .