Changeset 202 for test


Ignore:
Timestamp:
06/06/10 20:36:27 (14 years ago)
Author:
tim
Message:

began implementing independent python subkey and value iterators

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/pyregfi-smoketest.py

    r200 r202  
    77
    88
    9 def iter_values(iter):
     9def iter_values(key):
    1010    i = 0
    11     for value in iter.list_values():
     11    for value in key.values():
    1212        i += 1
    1313       
     
    1717for f in files:
    1818    rf = pyregfi.RegistryFile(f)
    19     iter = rf.get_key()
     19    iter = rf.TreeIterator()
    2020
    2121    num_keys = 0
     
    2323    # The iterator now walks the entire registry hive, depth-first
    2424    for key in iter:
    25         #print key.keyname
     25        print key.key.keyname
    2626        num_keys +=1
    27         num_values += iter_values(iter)
     27        num_values += iter_values(key)
    2828
    2929    print "keys: %d" % num_keys
Note: See TracChangeset for help on using the changeset viewer.