From 53e735ea9d1c7c0333e16b9bf318ad361d6f081f Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Fri, 29 Oct 2010 10:03:44 +0000 Subject: [PATCH] cosmetics --- extra/sqlharvest/sqlharvest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extra/sqlharvest/sqlharvest.py b/extra/sqlharvest/sqlharvest.py index 54c0d22f5..26497414a 100644 --- a/extra/sqlharvest/sqlharvest.py +++ b/extra/sqlharvest/sqlharvest.py @@ -19,6 +19,7 @@ from operator import itemgetter def main(): + TIMEOUT = 10 CONFIG_FILE = 'sqlharvest.cfg' TABLES_FILE = 'tables.txt' USER_AGENT = 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; AskTB5.3)' @@ -60,8 +61,7 @@ def main(): except: pass - timeout = 10 - socket.setdefaulttimeout(timeout) + socket.setdefaulttimeout(TIMEOUT) files, oldFiles = None, None try: