Ignore:
Timestamp:
07/11/06 07:32:39 (8 years ago)
Author:
xi
Message:

Fix a bug in Representer.represent_object: copy_reg.dispatch_table was not correctly handled.

File:
1 edited

Legend:

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

    r173 r206  
    418418        cls = type(data) 
    419419        if cls in copy_reg.dispatch_table: 
    420             reduce = copy_reg.dispatch_table[cls] 
     420            reduce = copy_reg.dispatch_table[cls](data) 
    421421        elif hasattr(data, '__reduce_ex__'): 
    422422            reduce = data.__reduce_ex__(2) 
Note: See TracChangeset for help on using the changeset viewer.