From e9873d38a53d6e140030212be8711d889207769b Mon Sep 17 00:00:00 2001 From: sqlcoder Date: Sat, 1 Aug 2009 00:06:07 +0100 Subject: [PATCH] fix sleep() call --- pyfpdb/Database.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyfpdb/Database.py b/pyfpdb/Database.py index 11f9ef17..82a71331 100755 --- a/pyfpdb/Database.py +++ b/pyfpdb/Database.py @@ -27,7 +27,7 @@ Create and manage the database objects. import sys import traceback from datetime import datetime, date, time, timedelta -from time import time, strftime +from time import time, strftime, sleep import string import re import logging @@ -1607,7 +1607,7 @@ class Database: tries = tries + 1 if tries < maxTries and wait < 5: # wait < 5 just to make sure print "deadlock detected - trying again ..." - time.sleep(wait) + sleep(wait) wait = wait + wait again = True else: