[lttng-dev] [RFC patch 2/3] [Babeltrace python bindings] Fixed use of braces in format strings, to allow use with older Python versions (e.g. 2.6)

Amit Margalit AMITM at il.ibm.com
Tue Aug 20 03:50:04 EDT 2013


Using braces in format strings without specifying a number (e.g. "The 
number {} is incorrect".format(some_variable)) is available since Python 
2.7, and older Python 2.6 required a number, zero-based (e.g. "The number 
{0} is incorrect"). 

This patch adds these numbers for the sake of older systems. 



Amit Margalit
IBM XIV - Storage Reinvented
XIV-NAS Development Team
Tel. 03-689-7774
Fax. 03-689-7230
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lttng.org/pipermail/lttng-dev/attachments/20130820/58d2bbfd/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Fixed-use-of-braces-in-format-strings-to-allow-use-w.patch
Type: application/octet-stream
Size: 2249 bytes
Desc: not available
URL: <http://lists.lttng.org/pipermail/lttng-dev/attachments/20130820/58d2bbfd/attachment.obj>


More information about the lttng-dev mailing list