Skip to content

Commit 46ed742

Browse files
Merge pull request #496 from SyamGadde/patch-1
MRG: Format string {} not allowed in Python 2.6 At least allow Nibabel to work to some degree with Python 2.6, but expecting there to be more breakage down the road.
2 parents 87afc75 + cdf1d28 commit 46ed742

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)