Do not always import module used only in debug mode
This commit is contained in:
parent
76cb004eb4
commit
8a2a1ece5e
6 changed files with 7 additions and 7 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue