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

Unified Diff: third_party/logilab/common/configuration.py

Issue 776883002: pylint: upgrade to 1.4.0 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools/
Patch Set: Created 6 years 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/cli.py ('k') | third_party/logilab/common/daemon.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/logilab/common/configuration.py
===================================================================
--- third_party/logilab/common/configuration.py (revision 293207)
+++ third_party/logilab/common/configuration.py (working copy)
@@ -409,21 +409,20 @@
"""format an options section using as ReST formatted output"""
encoding = _get_encoding(encoding, stream)
if section:
- print >> stream, '%s\n%s' % (section, "'"*len(section))
+ print('%s\n%s' % (section, "'"*len(section)), file=stream)
if doc:
- print >> stream, _encode(normalize_text(doc, line_len=79, indent=''),
- encoding)
- print >> stream
+ print(_encode(normalize_text(doc, line_len=79, indent=''), encoding), file=stream)
+ print(file=stream)
for optname, optdict, value in options:
help = optdict.get('help')
- print >> stream, ':%s:' % optname
+ print(':%s:' % optname, file=stream)
if help:
help = normalize_text(help, line_len=79, indent=' ')
- print >> stream, _encode(help, encoding)
+ print(_encode(help, encoding), file=stream)
if value:
value = _encode(format_option_value(optdict, value), encoding)
- print >> stream, ''
- print >> stream, ' Default: ``%s``' % value.replace("`` ", "```` ``")
+ print(file=stream)
+ print(' Default: ``%s``' % value.replace("`` ", "```` ``"), file=stream)
# Options Manager ##############################################################
« no previous file with comments | « third_party/logilab/common/cli.py ('k') | third_party/logilab/common/daemon.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698