def multi_constructor_import(loader, tag_suffix, node):
 if ('.' not in tag_suffix):
  raise yaml.YAMLError("!import: tag suffix contains no '.'")
 return try_to_import(tag_suffix)

def multi_constructor_import ( loader , tag_suffix , node ) : if ( '.' not in tag_suffix ) : raise yaml . YAMLError ( "!import: tag suffix contains no '.'" ) return try_to_import ( tag_suffix )
callback used by pyyaml when a "!import:" tag is encountered .