8000 Fix bench on Python 3.11 · davedoesdev/python-jwt@79d6aae · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Nov 13, 2023. It is now read-only.

Commit 79d6aae

Browse files
committed
Fix bench on Python 3.11
1 parent a4e0166 commit 79d6aae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bench/unitbench.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def run(self, reporter=None):
175175
for b in benchmarks:
176176

177177
method = getattr(self, b)
178-
arg_count = len(inspect.getargspec(method)[0])
178+
arg_count = len(inspect.getfullargspec(method)[0])
179179

180180
if arg_count == 2:
181181
results.append(self._run_benchmark(method, value))
@@ -299,4 +299,4 @@ def write_results(self, value, results):
299299
output.append(str(getattr(r, self.time_type+"_mean")))
300300
if len(output) > 0:
301301
self.stream.write(value + "," + ",".join(output))
302-
self.stream.write("\n")
302+
self.stream.write("\n")

0 commit comments

Comments
 (0)
0