Ignore:
Timestamp:
03/23/11 23:00:16 (13 years ago)
Author:
tim
Message:

fixed python2 compatbility problems in pyregfi
added better install scripts for both python2 and python3

File:
1 edited

Legend:

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

    r210 r212  
    149149## Abstract class which Handles memory management and proxies attribute
    150150#  access to base structures 
    151 class _StructureWrapper():
     151class _StructureWrapper(object):
    152152
    153153    hive = None
     
    187187
    188188
    189 class _GenericList():
     189class _GenericList(object):
    190190    hive = None
    191191    key = None
     
    241241        return self.constructor(self.hive, elem)
    242242   
     243    # For Python 2.x
     244    def next(self):
     245        return self.__next__()
     246
    243247
    244248class _SubkeyList(_GenericList):
     
    457461        return self.current_key()
    458462
     463    # For Python 2.x
     464    def next(self):
     465        return self.__next__()
     466
    459467    def down(self):
    460468        pass
Note: See TracChangeset for help on using the changeset viewer.