X-Git-Url: http://www.dolda2000.com/gitweb/?p=ashd.git;a=blobdiff_plain;f=python3%2Fashd-wsgi3;fp=python3%2Fashd-wsgi3;h=2ca259ab4b1e9e15667a6b5b59c6c9dbbeddef40;hp=fa0b8b590d2f71cecd4afbaa1fe989af0927432d;hb=e90d84e618a0f7982210de9f218a53da57c95aed;hpb=bb1ec927b657639ec5907f73623ea4b4d5c6a5fb diff --git a/python3/ashd-wsgi3 b/python3/ashd-wsgi3 index fa0b8b5..2ca259a 100755 --- a/python3/ashd-wsgi3 +++ b/python3/ashd-wsgi3 @@ -1,6 +1,6 @@ #!/usr/bin/python3 -import sys, os, getopt, socket, logging, time, locale, collections, signal +import sys, os, getopt, socket, logging, time, locale, collections.abc, signal import ashd.util, ashd.serve, ashd.htlib try: import pdm.srv @@ -148,7 +148,7 @@ def mkenv(req): return env def recode(thing): - if isinstance(thing, collections.ByteString): + if isinstance(thing, collections.abc.ByteString): return thing else: return str(thing).encode("latin-1")