Skip to content

Commit cdf1d28

Browse files
author
Syam Gadde
authored
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.
1 parent ec4567f commit cdf1d28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nibabel/deprecator.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def __call__(self, message, since='', until='',
146146
if since:
147147
messages.append('* deprecated from version: ' + since)
148148
if until:
149-
messages.append('* {} {} as of version: {}'.format(
149+
messages.append('* {0} {1} as of version: {2}'.format(
150150
"Raises" if self.is_bad_version(until) else "Will raise",
151151
error_class,
152152
until))

0 commit comments

Comments
 (0)