web/views/tabs.py
changeset 10612 84468b90e9c1
parent 9388 4c34a63bd113
child 10666 7f6b5f023884
--- a/web/views/tabs.py	Wed Sep 16 11:23:51 2015 +0200
+++ b/web/views/tabs.py	Mon Sep 14 16:03:07 2015 +0200
@@ -20,6 +20,8 @@
 __docformat__ = "restructuredtext en"
 _ = unicode
 
+from six import string_types
+
 from logilab.common.deprecation import class_renamed
 from logilab.mtconverter import xml_escape
 
@@ -114,7 +116,7 @@
         active_tab = uilib.domid(default_tab)
         viewsvreg = self._cw.vreg['views']
         for tab in tabs:
-            if isinstance(tab, basestring):
+            if isinstance(tab, string_types):
                 tabid, tabkwargs = tab, {}
             else:
                 tabid, tabkwargs = tab