def constructor_import(loader, node):
 value = loader.construct_scalar(node)
 if ('.' not in value):
  raise yaml.YAMLError("import tag suffix contains no '.'")
 return try_to_import(value)

def constructor_import ( loader , node ) : value = loader . construct_scalar ( node ) if ( '.' not in value ) : raise yaml . YAMLError ( "import tag suffix contains no '.'" ) return try_to_import ( value )
callback used by pyyaml when a "!import <str>" tag is encountered .