From cdf1d287065d561ca3e784404d4563a02d0d405b Mon Sep 17 00:00:00 2001 From: Syam Gadde Date: Thu, 10 Nov 2016 12:12:37 -0500 Subject: [PATCH] Format string {} not allowed in Python 2.6 pypi indicates that the current version of nibabel works for any version of Python, but the use of a literal '{}' (i.e. without indices) in a format string is only supported started in Python 2.7. --- nibabel/deprecator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nibabel/deprecator.py b/nibabel/deprecator.py index 7f8a420756..32a7c6835c 100644 --- a/nibabel/deprecator.py +++ b/nibabel/deprecator.py @@ -146,7 +146,7 @@ def __call__(self, message, since='', until='', if since: messages.append('* deprecated from version: ' + since) if until: - messages.append('* {} {} as of version: {}'.format( + messages.append('* {0} {1} as of version: {2}'.format( "Raises" if self.is_bad_version(until) else "Will raise", error_class, until))