[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)
Jérémie Galarneau
jeremie.galarneau at efficios.com
Tue Aug 20 12:32:57 EDT 2013
Acked-by: Jérémie Galarneau <jeremie.galarneau at efficios.com>
On Tue, Aug 20, 2013 at 3:50 AM, Amit Margalit <AMITM at il.ibm.com> wrote:
> 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
> _______________________________________________
> lttng-dev mailing list
> lttng-dev at lists.lttng.org
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
>
--
Jérémie Galarneau
EfficiOS Inc.
http://www.efficios.com
More information about the lttng-dev
mailing list