mirror of https://github.com/fail2ban/fail2ban
BF: fix MyTime imports
parent
33aee14fcc
commit
ec0670f6d5
|
@ -39,6 +39,7 @@ from fail2ban.server.filterpoll import FilterPoll
|
||||||
from fail2ban.server.filter import FileFilter, DNSUtils
|
from fail2ban.server.filter import FileFilter, DNSUtils
|
||||||
from fail2ban.server.failmanager import FailManager
|
from fail2ban.server.failmanager import FailManager
|
||||||
from fail2ban.server.failmanager import FailManagerEmpty
|
from fail2ban.server.failmanager import FailManagerEmpty
|
||||||
|
from fail2ban.server.mytime import MyTime
|
||||||
from fail2ban.tests.utils import setUpMyTime, tearDownMyTime
|
from fail2ban.tests.utils import setUpMyTime, tearDownMyTime
|
||||||
|
|
||||||
TEST_FILES_DIR = os.path.join(os.path.dirname(__file__), "files")
|
TEST_FILES_DIR = os.path.join(os.path.dirname(__file__), "files")
|
||||||
|
@ -48,7 +49,6 @@ TEST_FILES_DIR = os.path.join(os.path.dirname(__file__), "files")
|
||||||
#
|
#
|
||||||
|
|
||||||
from utils import mtimesleep
|
from utils import mtimesleep
|
||||||
from server.mytime import MyTime
|
|
||||||
|
|
||||||
# yoh: per Steven Hiscocks's insight while troubleshooting
|
# yoh: per Steven Hiscocks's insight while troubleshooting
|
||||||
# https://github.com/fail2ban/fail2ban/issues/103#issuecomment-15542836
|
# https://github.com/fail2ban/fail2ban/issues/103#issuecomment-15542836
|
||||||
|
|
|
@ -23,8 +23,6 @@ __copyright__ = "Copyright (c) 2013 Steven Hiscocks"
|
||||||
__license__ = "GPL"
|
__license__ = "GPL"
|
||||||
|
|
||||||
import unittest, sys, os, fileinput, re, time, datetime, inspect
|
import unittest, sys, os, fileinput, re, time, datetime, inspect
|
||||||
from server.mytime import MyTime
|
|
||||||
|
|
||||||
|
|
||||||
if sys.version_info >= (2, 6):
|
if sys.version_info >= (2, 6):
|
||||||
import json
|
import json
|
||||||
|
|
Loading…
Reference in New Issue