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

Unified Diff: third_party/logilab/common/ureports/__init__.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
« no previous file with comments | « third_party/logilab/common/umessage.py ('k') | third_party/logilab/common/ureports/docbook_writer.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/logilab/common/ureports/__init__.py
diff --git a/third_party/logilab/common/ureports/__init__.py b/third_party/logilab/common/ureports/__init__.py
index 65e9641bb3740510d4e746f2f1f307bbb81e0245..dcffcfa3fdc32eab25bce7b5e7eb9d250e77f993 100644
--- a/third_party/logilab/common/ureports/__init__.py
+++ b/third_party/logilab/common/ureports/__init__.py
@@ -20,11 +20,13 @@
A way to create simple reports using python objects, primarily designed to be
formatted as text and html.
"""
+from __future__ import generators
__docformat__ = "restructuredtext en"
import sys
+from cStringIO import StringIO
+from StringIO import StringIO as UStringIO
-from logilab.common.compat import StringIO
from logilab.common.textutils import linesep
@@ -156,7 +158,7 @@ class BaseWriter(object):
self.writeln = writeln
self.__compute_funcs.append((write, writeln))
for child in layout.children:
- stream = StringIO()
+ stream = UStringIO()
child.accept(self)
yield stream.getvalue()
self.__compute_funcs.pop()
« no previous file with comments | « third_party/logilab/common/umessage.py ('k') | third_party/logilab/common/ureports/docbook_writer.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698