Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(27)

Unified Diff: third_party/logilab/common/ureports/nodes.py

Issue 719313003: Revert "pylint: upgrade to 1.3.1" (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/logilab/common/ureports/nodes.py
diff --git a/third_party/logilab/common/ureports/nodes.py b/third_party/logilab/common/ureports/nodes.py
index a9585b30d2103c0b6616d7349a09e69858a14144..d63b58284cd8b3d9dae38ff58ce7bdf9c2510409 100644
--- a/third_party/logilab/common/ureports/nodes.py
+++ b/third_party/logilab/common/ureports/nodes.py
@@ -23,8 +23,6 @@ __docformat__ = "restructuredtext en"
from logilab.common.tree import VNode
-from six import string_types
-
class BaseComponent(VNode):
"""base report component
@@ -81,7 +79,7 @@ class Text(BaseComponent):
super(Text, self).__init__(**kwargs)
#if isinstance(data, unicode):
# data = data.encode('ascii')
- assert isinstance(data, string_types), data.__class__
+ assert isinstance(data, (str, unicode)), data.__class__
self.escaped = escaped
self.data = data
« no previous file with comments | « third_party/logilab/common/ureports/html_writer.py ('k') | third_party/logilab/common/ureports/text_writer.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698