[lttng-dev] [RFC patch] [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
       
    Mon Aug 19 07:18:49 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/20130819/a18d5449/attachment-0001.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: 2201 bytes
Desc: not available
URL: <http://lists.lttng.org/pipermail/lttng-dev/attachments/20130819/a18d5449/attachment-0001.obj>
    
    
More information about the lttng-dev
mailing list