From 0126b8eb0e7f8ffd504127af85e6f7dcf4532ad9 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Tue, 12 Jul 2011 19:34:54 +0000 Subject: [PATCH] minor revert (it's illegal to use append for updating one array with another array) --- lib/utils/hash.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/utils/hash.py b/lib/utils/hash.py index 36ddf4824..c74fc06bb 100644 --- a/lib/utils/hash.py +++ b/lib/utils/hash.py @@ -582,8 +582,7 @@ def dictionaryAttack(attack_dict): warnMsg = "user aborted during dictionary attack phase" logger.warn(warnMsg) - if retVal: - results.append([retVal.get() for i in xrange(retVal.qsize())]) + results.extend([retVal.get() for i in xrange(retVal.qsize())] if retVal else []) clearConsoleLine() @@ -650,8 +649,7 @@ def dictionaryAttack(attack_dict): warnMsg = "user aborted during dictionary attack phase" logger.warn(warnMsg) - if retVal: - results.append([retVal.get() for i in xrange(retVal.qsize())]) + results.extend([retVal.get() for i in xrange(retVal.qsize())] if retVal else []) clearConsoleLine()