From 75142b383ddecca4da781cd574970f44e77e245a Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Fri, 22 Apr 2011 21:00:42 +0000 Subject: [PATCH] huge speed up (4x times faster) --- lib/utils/resume.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/utils/resume.py b/lib/utils/resume.py index 1e38a7b17..8ef66e141 100644 --- a/lib/utils/resume.py +++ b/lib/utils/resume.py @@ -102,8 +102,8 @@ def resume(expression, payload): return None condition = ( - kb.resumedQueries and conf.url in kb.resumedQueries.keys() - and expression in kb.resumedQueries[conf.url].keys() + kb.resumedQueries and conf.url in kb.resumedQueries + and expression in kb.resumedQueries[conf.url] ) if not condition: