Changeset 57 for branches/pyyaml3000/lib/yaml/constructor.py
- Timestamp:
- 02/24/06 16:16:14 (7 years ago)
- File:
-
- 1 edited
-
branches/pyyaml3000/lib/yaml/constructor.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/pyyaml3000/lib/yaml/constructor.py
r56 r57 1 2 __all__ = ['BaseConstructor', 'Constructor', 'ConstructorError', 3 'YAMLObject', 'YAMLObjectMetaclass'] 1 4 2 5 from error import * … … 325 328 return self.construct_mapping(node) 326 329 330 def construct_undefined(self, node): 331 raise ConstructorError(None, None, 332 "could not determine a constructor for the tag %r" % node.tag.encode('utf-8'), 333 node.start_marker) 334 327 335 Constructor.add_constructor( 328 336 u'tag:yaml.org,2002:null', … … 368 376 u'tag:yaml.org,2002:map', 369 377 Constructor.construct_yaml_map) 378 379 Constructor.add_constructor(None, 380 Constructor.construct_undefined) 370 381 371 382 class YAMLObjectMetaclass(type):
Note: See TracChangeset
for help on using the changeset viewer.
