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.
This commit is contained in:
Mark Einon
2016-01-15 12:58:36 +00:00
parent cf0597157d
commit efa1334d45
+1 -1
View File
@@ -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():