Ticket #232: pyyaml-constructor.diff

File pyyaml-constructor.diff, 455 bytes (added by felix.antoine.fortin@…, 3 years ago)

Patch for Constructor.set_python_instance_state

  • lib/yaml/constructor.py

    old new  
    560560            elif state: 
    561561                slotstate.update(state) 
    562562            for key, value in slotstate.items(): 
    563                 setattr(object, key, value) 
     563                setattr(instance, key, value) 
    564564 
    565565    def construct_python_object(self, suffix, node): 
    566566        # Format: