- Timestamp:
- 06/06/10 20:36:27 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
test/pyregfi-smoketest.py
r200 r202 7 7 8 8 9 def iter_values( iter):9 def iter_values(key): 10 10 i = 0 11 for value in iter.list_values():11 for value in key.values(): 12 12 i += 1 13 13 … … 17 17 for f in files: 18 18 rf = pyregfi.RegistryFile(f) 19 iter = rf. get_key()19 iter = rf.TreeIterator() 20 20 21 21 num_keys = 0 … … 23 23 # The iterator now walks the entire registry hive, depth-first 24 24 for key in iter: 25 #printkey.keyname25 print key.key.keyname 26 26 num_keys +=1 27 num_values += iter_values( iter)27 num_values += iter_values(key) 28 28 29 29 print "keys: %d" % num_keys
Note: See TracChangeset
for help on using the changeset viewer.