Ignore:
Timestamp:
02/24/06 16:16:14 (8 years ago)
Author:
xi
Message:

Fix a few bugs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/pyyaml3000/lib/yaml/constructor.py

    r56 r57  
     1 
     2__all__ = ['BaseConstructor', 'Constructor', 'ConstructorError', 
     3    'YAMLObject', 'YAMLObjectMetaclass'] 
    14 
    25from error import * 
     
    325328        return self.construct_mapping(node) 
    326329 
     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 
    327335Constructor.add_constructor( 
    328336        u'tag:yaml.org,2002:null', 
     
    368376        u'tag:yaml.org,2002:map', 
    369377        Constructor.construct_yaml_map) 
     378 
     379Constructor.add_constructor(None, 
     380        Constructor.construct_undefined) 
    370381 
    371382class YAMLObjectMetaclass(type): 
Note: See TracChangeset for help on using the changeset viewer.