[PATCH 18 of 52 Narval cube] fix name 'basestring' is not defined

Nsukami Patrick ptrck at nskm.xyz
Wed Apr 1 11:34:18 CEST 2020


# HG changeset patch
# User Nsukami Patrick <ptrck at nskm dot xyz>
# Date 1585458605 0
#      Sun Mar 29 05:10:05 2020 +0000
# Node ID dbcb8b31aa1dba769c022985c7b580370d385c0a
# Parent  5c9077800dbeeb9ae2fe05d62a080262ddf152e7
fix name 'basestring' is not defined

diff --git a/cubicweb_narval/testutils.py b/cubicweb_narval/testutils.py
--- a/cubicweb_narval/testutils.py
+++ b/cubicweb_narval/testutils.py
@@ -89,7 +89,7 @@
                         fval = (fname, fval)
                     if isinstance(fval[1], str):
                         fval = (fval[0], fval[1].encode('utf-8'))
-                    if isinstance(fval[1], basestring):
+                    if isinstance(fval[1], str):
                         fval = (fval[0], BytesIO(fval[1]))
                     form[fname] = fval
             if '_cw_fields' not in form:




More information about the cubicweb-devel mailing list