minor beautification

This commit is contained in:
Miroslav Stampar 2011-11-21 22:18:04 +00:00
parent 753dcb3450
commit fcac3d494b

View File

@ -714,10 +714,12 @@ def dictionaryAttack(attack_dict):
finally: finally:
if retVal: if retVal:
conf.hashDB.beginTransaction() conf.hashDB.beginTransaction()
while not retVal.empty(): while not retVal.empty():
_, hash_, word = item = retVal.get(block=False) _, hash_, word = item = retVal.get(block=False)
conf.hashDB.write(hash_, word) conf.hashDB.write(hash_, word)
results.append(item) results.append(item)
conf.hashDB.endTransaction() conf.hashDB.endTransaction()
clearConsoleLine() clearConsoleLine()
@ -795,10 +797,12 @@ def dictionaryAttack(attack_dict):
finally: finally:
if retVal: if retVal:
conf.hashDB.beginTransaction() conf.hashDB.beginTransaction()
while not retVal.empty(): while not retVal.empty():
_, hash_, word = item = retVal.get(block=False) _, hash_, word = item = retVal.get(block=False)
conf.hashDB.write(hash_, word) conf.hashDB.write(hash_, word)
results.append(item) results.append(item)
conf.hashDB.endTransaction() conf.hashDB.endTransaction()
clearConsoleLine() clearConsoleLine()