Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0126b8e

Browse files
committed
minor revert (it's illegal to use append for updating one array with another array)
1 parent 48b7245 commit 0126b8e

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

lib/utils/hash.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -582,8 +582,7 @@ def dictionaryAttack(attack_dict):
582582
warnMsg = "user aborted during dictionary attack phase"
583583
logger.warn(warnMsg)
584584

585-
if retVal:
586-
results.append([retVal.get() for i in xrange(retVal.qsize())])
585+
results.extend([retVal.get() for i in xrange(retVal.qsize())] if retVal else [])
587586

588587
clearConsoleLine()
589588

@@ -650,8 +649,7 @@ class Value():
650649
warnMsg = "user aborted during dictionary attack phase"
651650
logger.warn(warnMsg)
652651

653-
if retVal:
654-
results.append([retVal.get() for i in xrange(retVal.qsize())])
652+
results.extend([retVal.get() for i in xrange(retVal.qsize())] if retVal else [])
655653

656654
clearConsoleLine()
657655

0 commit comments

Comments
 (0)