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:
bb1ec92
)
python3: Fixed ABC import for Python 3.8 compatibility.
author
Fredrik Tolf
<fredrik@dolda2000.com>
Sat, 27 Aug 2022 13:52:03 +0000
(15:52 +0200)
committer
Fredrik Tolf
<fredrik@dolda2000.com>
Sat, 27 Aug 2022 13:52:03 +0000
(15:52 +0200)
python3/ashd-wsgi3
patch
|
blob
|
blame
|
history
diff --git
a/python3/ashd-wsgi3
b/python3/ashd-wsgi3
index
fa0b8b5
..
2ca259a
100755
(executable)
--- 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")