From ea7945427b108ed1464fc7e306fbcf43dc4989ee Mon Sep 17 00:00:00 2001 From: Jeroen Demeyer <jdemeyer@cage.ugent.be> Date: Sun, 26 Apr 2015 09:32:18 +0200 Subject: [PATCH] Fix string formatting --- Cython/Build/Dependencies.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cython/Build/Dependencies.py b/Cython/Build/Dependencies.py index a65c2e0fa..70004d2dd 100644 --- a/Cython/Build/Dependencies.py +++ b/Cython/Build/Dependencies.py @@ -835,7 +835,7 @@ def cythonize(module_list, exclude=[], nthreads=0, aliases=None, quiet=False, fo # Drop "priority" component of "to_compile" entries and add a # simple progress indicator. N = len(to_compile) - progress_fmt = "[{:%i}/{}] " % len(str(N)) + progress_fmt = "[{0:%d}/{1}] " % len(str(N)) for i in range(N): progress = progress_fmt.format(i+1, N) to_compile[i] = to_compile[i][1:] + (progress,) -- 2.30.9