From: Fredrik Tolf Date: Tue, 11 Jun 2024 22:19:21 +0000 (+0200) Subject: python3: Fix ByteString reference in perf module. X-Git-Url: http://git.dolda2000.com/gitweb/?a=commitdiff_plain;h=19bb68ac652306d1426e6f35674e6d7a2fbe5d8f;p=ashd.git python3: Fix ByteString reference in perf module. --- diff --git a/python3/ashd/perf.py b/python3/ashd/perf.py index 86fe43c..4adfc54 100644 --- 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)