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

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

Issue 739393004: Revert "Revert "pylint: upgrade to 1.3.1"" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools/
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
===================================================================
--- third_party/logilab/common/ureports/__init__.py (revision 293047)
+++ third_party/logilab/common/ureports/__init__.py (working copy)
@@ -20,13 +20,11 @@
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
@@ -158,7 +156,7 @@
self.writeln = writeln
self.__compute_funcs.append((write, writeln))
for child in layout.children:
- stream = UStringIO()
+ stream = StringIO()
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