still support py27
This commit is contained in:
parent
8447f88159
commit
0434296415
|
@ -1,5 +1,8 @@
|
||||||
from __future__ import print_function, unicode_literals
|
from __future__ import print_function, unicode_literals
|
||||||
from unittest import mock
|
try:
|
||||||
|
from unittest import mock
|
||||||
|
except ImportError:
|
||||||
|
import mock
|
||||||
from twisted.trial import unittest
|
from twisted.trial import unittest
|
||||||
from ..increase_rlimits import increase_rlimits
|
from ..increase_rlimits import increase_rlimits
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,9 @@
|
||||||
from __future__ import unicode_literals, print_function
|
from __future__ import unicode_literals, print_function
|
||||||
from twisted.trial import unittest
|
from twisted.trial import unittest
|
||||||
from unittest import mock
|
try:
|
||||||
|
from unittest import mock
|
||||||
|
except ImportError:
|
||||||
|
import mock
|
||||||
from twisted.application.service import MultiService
|
from twisted.application.service import MultiService
|
||||||
from .. import server_tap
|
from .. import server_tap
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,9 @@
|
||||||
from __future__ import print_function, unicode_literals
|
from __future__ import print_function, unicode_literals
|
||||||
import os, io, json, sqlite3
|
import os, io, json, sqlite3
|
||||||
from unittest import mock
|
try:
|
||||||
|
from unittest import mock
|
||||||
|
except ImportError:
|
||||||
|
import mock
|
||||||
from twisted.trial import unittest
|
from twisted.trial import unittest
|
||||||
from ..transit_server import Transit
|
from ..transit_server import Transit
|
||||||
from .. import database
|
from .. import database
|
||||||
|
|
Loading…
Reference in New Issue
Block a user