- Timestamp:
- 06/19/11 21:39:57 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
test/pyregfi-smoketest.py
r262 r265 65 65 path = getCurrentPath(k) 66 66 try: 67 print(repr(path))68 67 hive_iter = hive.subtree(path) 69 68 if hive_iter.current_key() != k: … … 201 200 new_fh = io.BytesIO(fh.read()) 202 201 new_hive = pyregfi.Hive(new_fh) 202 stat = 0 203 203 for k in new_hive: 204 pass 204 stat += 1 205 print(" %d keys found" % stat) 205 206 206 207 … … 234 235 def loopSecurity(hive, fh): 235 236 cur = hive.root.fetch_security() 237 first = cur 238 stat = 0 236 239 while True: 237 240 stat += len(cur.descriptor.owner) … … 243 246 244 247 nxt = cur.next_security() 245 if cur== nxt:248 if first == nxt: 246 249 break 247 248 250 cur = nxt 251 print(" Security stat: %d" % stat) 252 253 249 254 def iterSecurity(hive, fh): 250 255 stat = 0
Note: See TracChangeset
for help on using the changeset viewer.