diff --git a/setup.py b/setup.py index fa59aa80c280edaca9d69e0f816c44967f170f60..6c3d036f6d585e3dd2d8a2b307ea0060363ba2bb 100644 --- a/setup.py +++ b/setup.py @@ -71,7 +71,7 @@ class fsl_sdist(sdist): def __patch_py_file(self, filename, licence): licence = licence.split('\n') - licence = ['# {}'.format(l) for l in licence] + licence = ['# {0}'.format(l) for l in licence] with open(filename, 'rt') as f: lines = f.read().split('\n') @@ -82,7 +82,7 @@ class fsl_sdist(sdist): # Insert the fsl hashbang and the licence lines = ['#!/usr/bin/env fslpython'] + ['#'] + licence + lines - lines = ['{}\n'.format(l) for l in lines] + lines = ['{0}\n'.format(l) for l in lines] with open(filename, 'wt') as f: f.writelines(lines)