Ignore:
Timestamp:
04/21/06 13:31:29 (9 years ago)
Author:
xi
Message:

Fix !!python/name for Python 2.3. Clear the yaml module namespace.

File:
1 edited

Legend:

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

    r142 r146  
    457457                    "expected non-empty name appended to the tag", mark) 
    458458        if u'.' in name: 
    459             module_name, object_name = name.rsplit('.', 1) 
     459            # Python 2.4 only 
     460            #module_name, object_name = name.rsplit('.', 1) 
     461            items = name.split('.') 
     462            object_name = items.pop() 
     463            module_name = '.'.join(items) 
    460464        else: 
    461465            module_name = '__builtin__' 
Note: See TracChangeset for help on using the changeset viewer.