Dolda2000 GitWeb
/
ashd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eaefded
)
python3: Fix ByteString reference in perf module.
author
Fredrik Tolf
<fredrik@dolda2000.com>
Tue, 11 Jun 2024 22:19:21 +0000
(
00:19
+0200)
committer
Fredrik Tolf
<fredrik@dolda2000.com>
Tue, 11 Jun 2024 22:19:21 +0000
(
00:19
+0200)
python3/ashd/perf.py
patch
|
blob
|
blame
|
history
diff --git
a/python3/ashd/perf.py
b/python3/ashd/perf.py
index
86fe43c
..
4adfc54
100644
(file)
--- a/
python3/ashd/perf.py
+++ b/
python3/ashd/perf.py
@@
-1,4
+1,4
@@
-import collections
+import collections
.abc
try:
import pdm.perf
except:
@@
-56,7
+56,7
@@
class request(object):
try:
if len(self.resp) > 0:
status = self.resp[0]
- if isinstance(status, collections.ByteString):
+ if isinstance(status, collections.
abc.
ByteString):
status = status.decode("latin-1")
else:
status = str(status)