| Index: third_party/logilab/common/ureports/nodes.py
|
| ===================================================================
|
| --- third_party/logilab/common/ureports/nodes.py (revision 292986)
|
| +++ third_party/logilab/common/ureports/nodes.py (working copy)
|
| @@ -23,6 +23,8 @@
|
|
|
| from logilab.common.tree import VNode
|
|
|
| +from six import string_types
|
| +
|
| class BaseComponent(VNode):
|
| """base report component
|
|
|
| @@ -79,7 +81,7 @@
|
| super(Text, self).__init__(**kwargs)
|
| #if isinstance(data, unicode):
|
| # data = data.encode('ascii')
|
| - assert isinstance(data, (str, unicode)), data.__class__
|
| + assert isinstance(data, string_types), data.__class__
|
| self.escaped = escaped
|
| self.data = data
|
|
|
|
|