Changeset 271 for trunk/python


Ignore:
Timestamp:
07/12/11 11:18:46 (13 years ago)
Author:
tim
Message:

another attribute fix

File:
1 edited

Legend:

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

    r270 r271  
    712712
    713713    def __getattr__(self, name):
     714        ret_val = None
    714715        if name == "name":
    715716            ret_val = super(Value, self).__getattr__(name)
     
    725726            if (flags & structures.REGFI_VK_FLAG_ASCIINAME) > 0:
    726727                ret_val = "ascii"
    727             ret_val = "utf-16-le"
     728            else:
     729                ret_val = "utf-16-le"
    728730
    729731        elif name == "name_raw":
     
    731733            length = super(Value, self).__getattr__('name_length')
    732734            ret_val = _buffer2bytearray(ret_val, length)
     735
     736        else:
     737            ret_val = super(Value, self).__getattr__(name)
    733738
    734739        return ret_val
Note: See TracChangeset for help on using the changeset viewer.