summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Dent <cdent@anticdent.org>2023-04-30 11:51:15 +0100
committerChris Dent <cdent@anticdent.org>2023-04-30 11:51:15 +0100
commitc29ebf951164d8c087b18a12c363eb089a83a0e9 (patch)
treefe5e0ccdee8d95d68f19d29ac48c58b9514e8198
parentef43fd9a4e973d7176be99202936010760405dc8 (diff)
downloadpaste-git-c29ebf951164d8c087b18a12c363eb089a83a0e9.tar.gz
from.cgi needs to not use six
This is because it is not running in the virtualenv.
-rwxr-xr-xtests/cgiapp_data/form.cgi4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/cgiapp_data/form.cgi b/tests/cgiapp_data/form.cgi
index c4c562d..ac513b1 100755
--- a/tests/cgiapp_data/form.cgi
+++ b/tests/cgiapp_data/form.cgi
@@ -3,12 +3,12 @@
from __future__ import print_function
import cgi
-import six
+import sys
print('Content-type: text/plain')
print('')
-if six.PY3:
+if sys.version_info.major >= 3:
# Python 3: cgi.FieldStorage keeps some field names as unicode and some as
# the repr() of byte strings, duh.