python3: Fix ByteString reference in perf module.
authorFredrik Tolf <fredrik@dolda2000.com>
Tue, 11 Jun 2024 22:19:21 +0000 (00:19 +0200)
committerFredrik Tolf <fredrik@dolda2000.com>
Tue, 11 Jun 2024 22:19:21 +0000 (00:19 +0200)
python3/ashd/perf.py

index 86fe43c..4adfc54 100644 (file)
@@ -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)