mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-04-08 11:24:25 +00:00
Finish porting to Python 3.
This commit is contained in:
parent
d19ae1e511
commit
21e3b355ec
0
newsfragments/3446.minor
Normal file
0
newsfragments/3446.minor
Normal file
@ -1,4 +1,11 @@
|
||||
from future.builtins import str
|
||||
from __future__ import absolute_import
|
||||
from __future__ import division
|
||||
from __future__ import print_function
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from future.utils import PY2
|
||||
if PY2:
|
||||
from future.builtins import filter, map, zip, ascii, chr, hex, input, next, oct, open, pow, round, super, bytes, dict, list, object, range, str, max, min # noqa: F401
|
||||
|
||||
import os
|
||||
from twisted.internet import defer
|
||||
@ -136,7 +143,7 @@ class AssistedUpload(unittest.TestCase):
|
||||
self.s.tub = t
|
||||
# we never actually use this for network traffic, so it can use a
|
||||
# bogus host/port
|
||||
t.setLocation("bogus:1234")
|
||||
t.setLocation(b"bogus:1234")
|
||||
|
||||
def setUpHelper(self, basedir, helper_class=Helper_fake_upload):
|
||||
fileutil.make_dirs(basedir)
|
||||
|
@ -90,6 +90,7 @@ PORTED_TEST_MODULES = [
|
||||
"allmydata.test.test_happiness",
|
||||
"allmydata.test.test_hashtree",
|
||||
"allmydata.test.test_hashutil",
|
||||
"allmydata.test.test_helper",
|
||||
"allmydata.test.test_humanreadable",
|
||||
"allmydata.test.test_iputil",
|
||||
"allmydata.test.test_log",
|
||||
|
Loading…
x
Reference in New Issue
Block a user