mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-20 11:38:52 +00:00
Fix use of API removed in 3.11.
This commit is contained in:
parent
5ca07c311c
commit
708d54b5fd
@ -34,7 +34,7 @@ from __future__ import annotations
|
|||||||
|
|
||||||
from typing import Iterator, Optional, List, Tuple
|
from typing import Iterator, Optional, List, Tuple
|
||||||
from collections.abc import Awaitable
|
from collections.abc import Awaitable
|
||||||
from inspect import getargspec
|
from inspect import getfullargspec
|
||||||
from itertools import count
|
from itertools import count
|
||||||
from sys import stderr
|
from sys import stderr
|
||||||
|
|
||||||
@ -141,8 +141,8 @@ def _verify():
|
|||||||
"""
|
"""
|
||||||
# Poor man's interface verification.
|
# Poor man's interface verification.
|
||||||
|
|
||||||
a = getargspec(create)
|
a = getfullargspec(create)
|
||||||
b = getargspec(MemoryWormholeServer.create)
|
b = getfullargspec(MemoryWormholeServer.create)
|
||||||
# I know it has a `self` argument at the beginning. That's okay.
|
# I know it has a `self` argument at the beginning. That's okay.
|
||||||
b = b._replace(args=b.args[1:])
|
b = b._replace(args=b.args[1:])
|
||||||
assert a == b, "{} != {}".format(a, b)
|
assert a == b, "{} != {}".format(a, b)
|
||||||
|
Loading…
Reference in New Issue
Block a user