From 67967a53a3384b652548d5fd293b5be76fd627ee Mon Sep 17 00:00:00 2001 From: Paul McCarthy <pauld.mccarthy@gmail.com> Date: Mon, 21 Nov 2016 14:14:13 +0000 Subject: [PATCH] Make setup.py backwards compatible with ancient python. --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index fa59aa80c..6c3d036f6 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) -- GitLab