summarylogtreecommitdiffstats
path: root/flup_python3.patch
diff options
context:
space:
mode:
authorJackson McClintock2019-06-22 15:15:25 -0400
committerJackson McClintock2019-06-22 15:15:25 -0400
commit476994f379bf202bd5b69b25af193b11ae413caa (patch)
tree5ef1febea6384662dec9c4044f51f279a2bc0152 /flup_python3.patch
parent563b2c1001d424db14d3a156ac8b018c28082b71 (diff)
downloadaur-476994f379bf202bd5b69b25af193b11ae413caa.tar.gz
Add flup patch
Diffstat (limited to 'flup_python3.patch')
-rw-r--r--flup_python3.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/flup_python3.patch b/flup_python3.patch
new file mode 100644
index 000000000000..9c8c5ea5bdd6
--- /dev/null
+++ b/flup_python3.patch
@@ -0,0 +1,20 @@
+--- a/lib/python3.7/site-packages/flup-1.0.3-py3.7.egg/flup/server/paste_factory.py 2019-06-22 14:36:32.738706639 -0400
++++ b/lib/python3.7/site-packages/flup-1.0.3-py3.7.egg/flup/server/paste_factory.py 2019-06-22 14:51:07.064597983 -0400
+@@ -4,7 +4,7 @@
+ from flup.server import NoDefault
+
+ def asbool(obj):
+- if isinstance(obj, (str, unicode)):
++ if isinstance(obj, (bytes, str)):
+ obj = obj.strip().lower()
+ if obj in ['true', 'yes', 'on', 'y', 't', '1']:
+ return True
+@@ -16,7 +16,7 @@
+ return bool(obj)
+
+ def aslist(obj, sep=None, strip=True):
+- if isinstance(obj, (str, unicode)):
++ if isinstance(obj, (bytes, str)):
+ lst = obj.split(sep)
+ if strip:
+ lst = [v.strip() for v in lst]