diff options
author | Chris Dent <cdent@anticdent.org> | 2023-04-30 11:51:15 +0100 |
---|---|---|
committer | Chris Dent <cdent@anticdent.org> | 2023-04-30 11:51:15 +0100 |
commit | c29ebf951164d8c087b18a12c363eb089a83a0e9 (patch) | |
tree | fe5e0ccdee8d95d68f19d29ac48c58b9514e8198 | |
parent | ef43fd9a4e973d7176be99202936010760405dc8 (diff) | |
download | paste-git-c29ebf951164d8c087b18a12c363eb089a83a0e9.tar.gz |
from.cgi needs to not use six
This is because it is not running in the virtualenv.
-rwxr-xr-x | tests/cgiapp_data/form.cgi | 4 |
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. |