Do not always import module used only in debug mode

This commit is contained in:
Florent 2014-07-08 20:03:00 +02:00
commit 8a2a1ece5e
6 changed files with 7 additions and 7 deletions

View file

@ -20,7 +20,6 @@
import warnings
from time import time, sleep
from tempfile import gettempdir
import os
import sys
import traceback
@ -136,6 +135,7 @@ def ratelimit(group, delay):
@param delay [int] delay in seconds between each call
"""
from tempfile import gettempdir
path = os.path.join(gettempdir(), 'weboob_ratelimit.%s' % group)
while True:
try: