Changeset 155


Ignore:
Timestamp:
05/07/06 10:02:42 (8 years ago)
Author:
xi
Message:

Allow first=None for add_implicit_resolver.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pyyaml/trunk/lib/yaml/resolver.py

    r137 r155  
    2626        if not 'yaml_implicit_resolvers' in cls.__dict__: 
    2727            cls.yaml_implicit_resolvers = cls.yaml_implicit_resolvers.copy() 
     28        if first is None: 
     29            first = [None] 
    2830        for ch in first: 
    2931            cls.yaml_implicit_resolvers.setdefault(ch, []).append((tag, regexp)) 
Note: See TracChangeset for help on using the changeset viewer.