[PATCH 17 of 24 Openidrelay cube] [flake8] fix F821 undefined name 'basestring'

Nsukami Patrick ptrck at nskm.xyz
Wed Apr 1 09:54:00 CEST 2020


# HG changeset patch
# User Nsukami Patrick <ptrck at nskm dot xyz>
# Date 1585471983 0
#      Sun Mar 29 08:53:03 2020 +0000
# Node ID 80e31fe447217cb1aa1da420764bde9dc6dc6ee2
# Parent  dda82c1a81e808915e9692861ebb9af15a695a2d
[flake8] fix F821 undefined name 'basestring'

diff --git a/cubicweb_openidrelay/views.py b/cubicweb_openidrelay/views.py
--- a/cubicweb_openidrelay/views.py
+++ b/cubicweb_openidrelay/views.py
@@ -151,7 +151,7 @@
             raise Redirect(self._cw.build_url())
         loginfo, _identity = loginfo_identity
         infoname, data = loginfo
-        if not isinstance(data, basestring):
+        if not isinstance(data, str):
             data = data[0] if data else u''
         w = self.w
         _ = self._cw._




More information about the cubicweb-devel mailing list