diff options
author | Alex Dewar | 2019-11-27 18:00:41 +0000 |
---|---|---|
committer | Alex Dewar | 2019-11-27 18:00:41 +0000 |
commit | 209f6e143bf11fba843b3d4f1e7b620dca13f913 (patch) | |
tree | 1ab24dd75d4aa985f231aa5e39ab32ca04ace4dc /python38.patch | |
parent | 43e2c2ea582361453940b2ab6251fbb974dff567 (diff) | |
download | aur-209f6e143bf11fba843b3d4f1e7b620dca13f913.tar.gz |
v2.7
Diffstat (limited to 'python38.patch')
-rw-r--r-- | python38.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/python38.patch b/python38.patch new file mode 100644 index 000000000000..4b92513d4862 --- /dev/null +++ b/python38.patch @@ -0,0 +1,27 @@ + +diff --git a/openSM2sync/server.py b/openSM2sync/server.py +index 50c1e0f6..1a7d6da4 100755 +--- a/openSM2sync/server.py ++++ b/openSM2sync/server.py +@@ -5,11 +5,11 @@ + + import os + import sys +-import cgi + import time + import types + import select + import socket ++import urllib + import tarfile + import http.client + import tempfile +@@ -152,7 +152,7 @@ def get_method(self, environ): + # Convert e.g. GET /foo_bar into get_foo_bar. + method = (environ["REQUEST_METHOD"] + \ + environ["PATH_INFO"].replace("/", "_")).lower() +- args = cgi.parse_qs(environ["QUERY_STRING"]) ++ args = urllib.parse.parse_qs(environ["QUERY_STRING"]) + args = dict([(key, val[0]) for key, val in list(args.items())]) + # Login method. + if method == "put_login" or method == "get_status": |