mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-02 01:08:20 +00:00
Make module import on Python 2 (so tests can pass).
This commit is contained in:
parent
79cd9a3d6d
commit
7aed7dbd8a
@ -13,6 +13,11 @@ if PY2:
|
|||||||
# fmt: off
|
# fmt: off
|
||||||
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
|
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
|
||||||
# fmt: on
|
# fmt: on
|
||||||
|
from collections import defaultdict
|
||||||
|
|
||||||
|
Optional = Set = defaultdict(
|
||||||
|
lambda: None
|
||||||
|
) # some garbage to just make this module import
|
||||||
else:
|
else:
|
||||||
# typing module not available in Python 2, and we only do type checking in
|
# typing module not available in Python 2, and we only do type checking in
|
||||||
# Python 3 anyway.
|
# Python 3 anyway.
|
||||||
@ -131,7 +136,7 @@ class StorageClientImmutables(object):
|
|||||||
APIs for interacting with immutables.
|
APIs for interacting with immutables.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, client: StorageClient): # # type: (StorageClient) -> None
|
def __init__(self, client): # type: (StorageClient) -> None
|
||||||
self._client = client
|
self._client = client
|
||||||
|
|
||||||
@inlineCallbacks
|
@inlineCallbacks
|
||||||
|
Loading…
x
Reference in New Issue
Block a user