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

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

Issue 753543006: pylint: upgrade to 1.4.0 (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
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
diff --git a/third_party/logilab/common/configuration.py b/third_party/logilab/common/configuration.py
index 1371c76d3bb5711a493e40c417200f70d8f49583..b2924277c940658f56c759cf589b97bc4d2c9c9e 100644
--- a/third_party/logilab/common/configuration.py
+++ b/third_party/logilab/common/configuration.py
@@ -409,21 +409,20 @@ def rest_format_section(stream, section, options, encoding=None, doc=None):
"""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