py3-only imports

This commit is contained in:
meejah 2021-04-14 15:32:32 -06:00
parent d17e8ff169
commit 1efc1313db
3 changed files with 3 additions and 12 deletions

View File

@ -1,8 +1,5 @@
from __future__ import print_function, unicode_literals
try:
from unittest import mock
except ImportError:
import mock
from twisted.trial import unittest
from ..increase_rlimits import increase_rlimits

View File

@ -1,9 +1,6 @@
from __future__ import unicode_literals, print_function
from twisted.trial import unittest
try:
from unittest import mock
except ImportError:
import mock
from twisted.application.service import MultiService
from .. import server_tap

View File

@ -1,9 +1,6 @@
from __future__ import print_function, unicode_literals
import os, io, json, sqlite3
try:
from unittest import mock
except ImportError:
import mock
from twisted.trial import unittest
from ..transit_server import Transit
from .. import database