From efa1334d45c40a31d3ebfddc450ab4b233953d40 Mon Sep 17 00:00:00 2001 From: Mark Einon Date: Fri, 15 Jan 2016 12:48:30 +0000 Subject: [PATCH] Change python print() format to be backward compatible with older versions In python versions prior to 3.1, the print("{}", .format(x)) form throws an error, use the more compatible print("{0}", .format(x)) form instead. --- scripts/binary_compatibility.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/binary_compatibility.py b/scripts/binary_compatibility.py index f1e7030b433..63832b4a1f2 100644 --- a/scripts/binary_compatibility.py +++ b/scripts/binary_compatibility.py @@ -46,7 +46,7 @@ def install_compat(): compat_plat = compatible_platforms.get(this_plat, None) rval = {} if compat_plat: - print('{} is binary compatible with {} (and can install {} wheels)' + print('{0} is binary compatible with {1} (and can install {2} wheels)' .format(this_plat, compat_plat, compat_plat), file=sys.stderr) for py, abi, plat in get_supported():