Changeset 271 for trunk/python
- Timestamp:
- 07/12/11 11:18:46 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/pyregfi/__init__.py
r270 r271 712 712 713 713 def __getattr__(self, name): 714 ret_val = None 714 715 if name == "name": 715 716 ret_val = super(Value, self).__getattr__(name) … … 725 726 if (flags & structures.REGFI_VK_FLAG_ASCIINAME) > 0: 726 727 ret_val = "ascii" 727 ret_val = "utf-16-le" 728 else: 729 ret_val = "utf-16-le" 728 730 729 731 elif name == "name_raw": … … 731 733 length = super(Value, self).__getattr__('name_length') 732 734 ret_val = _buffer2bytearray(ret_val, length) 735 736 else: 737 ret_val = super(Value, self).__getattr__(name) 733 738 734 739 return ret_val
Note: See TracChangeset
for help on using the changeset viewer.