Hi, (I'm not subscribed to this list; please CC me on replies.)
Attached please find a trivial patch for logilab-common 0.63.0: configuration.py has been converted to use the Python 3-ish print function, but there's one function that still uses the old print statement. Thanks, -- Adam Sampson <a...@offog.org> <http://offog.org/>
This file uses the Python 3-style print function, so >> won't work. diff -x config.log -x config.status -ru tmp/logilab-common-0.63.0/configuration.py work/logilab-common-0.63.0/configuration.py --- tmp/logilab-common-0.63.0/configuration.py 2014-11-05 14:06:19.000000000 +0000 +++ work/logilab-common-0.63.0/configuration.py 2014-11-10 22:21:10.976000000 +0000 @@ -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 ##############################################################
_______________________________________________ Python-Projects mailing list Python-Projects@lists.logilab.org http://lists.logilab.org/mailman/listinfo/python-projects