Changeset 270 for trunk


Ignore:
Timestamp:
07/11/11 11:56:09 (13 years ago)
Author:
tim
Message:

fixed Value attribute brokenness

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/pyregfi/__init__.py

    r268 r270  
    712712
    713713    def __getattr__(self, name):
    714         ret_val = super(Value, self).__getattr__(name)
    715714        if name == "name":
     715            ret_val = super(Value, self).__getattr__(name)
    716716            if not ret_val:
    717717                ret_val = self.name_raw
     
    728728
    729729        elif name == "name_raw":
     730            ret_val = super(Value, self).__getattr__(name)
    730731            length = super(Value, self).__getattr__('name_length')
    731732            ret_val = _buffer2bytearray(ret_val, length)
Note: See TracChangeset for help on using the changeset viewer.