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 collections.abc import Awaitable
|
||||
from inspect import getargspec
|
||||
from inspect import getfullargspec
|
||||
from itertools import count
|
||||
from sys import stderr
|
||||
|
||||
@ -141,8 +141,8 @@ def _verify():
|
||||
"""
|
||||
# Poor man's interface verification.
|
||||
|
||||
a = getargspec(create)
|
||||
b = getargspec(MemoryWormholeServer.create)
|
||||
a = getfullargspec(create)
|
||||
b = getfullargspec(MemoryWormholeServer.create)
|
||||
# I know it has a `self` argument at the beginning. That's okay.
|
||||
b = b._replace(args=b.args[1:])
|
||||
assert a == b, "{} != {}".format(a, b)
|
||||
|
Loading…
Reference in New Issue
Block a user