--- a/cubicweb/devtools/fake.py Fri Apr 05 17:21:14 2019 +0200
+++ b/cubicweb/devtools/fake.py Fri Apr 05 17:58:19 2019 +0200
@@ -20,8 +20,6 @@
from contextlib import contextmanager
-from six import string_types
-
from logilab.database import get_db_helper
from cubicweb.req import RequestSessionBase
@@ -98,7 +96,7 @@
def set_request_header(self, header, value, raw=False):
"""set an incoming HTTP header (for test purpose only)"""
- if isinstance(value, string_types):
+ if isinstance(value, str):
value = [value]
if raw:
# adding encoded header is important, else page content