@@ -183,7 +183,7 @@ def set_version(self):
183
183
elif self .service == 'singularity' :
184
184
ret = subprocess .run (['singularity' , 'version' ], stdout = subprocess .PIPE )
185
185
version = ret .stdout .decode ('ascii' ).strip ()
186
- version_env = f' { self .service .upper ()} _VERSION_8395080871'
186
+ version_env = '%s_VERSION_8395080871' % self .service .upper ()
187
187
self .add_envvar ((version_env , version ))
188
188
189
189
def add_envvar (self , envtuple ):
@@ -378,7 +378,7 @@ def _is_file(path, parser):
378
378
'--image' ,
379
379
metavar = 'IMG' ,
380
380
type = str ,
381
- default = f 'nipreps/nibabies:{ __version__ } ' ,
381
+ default = 'nipreps/nibabies:%s' % __version__ ,
382
382
help = 'image name' ,
383
383
)
384
384
@@ -534,7 +534,7 @@ def main():
534
534
opts , unknown_args = parser .parse_known_args ()
535
535
536
536
if opts .version :
537
- print (f 'nibabies wrapper { __version__ !s} ' )
537
+ print ('nibabies wrapper {!s}' . format ( __version__ ) )
538
538
return
539
539
540
540
# Set help if no directories set
@@ -605,7 +605,7 @@ def main():
605
605
# Patch working repositories into installed package directories
606
606
if opts .patch :
607
607
for pkg , repo_path in opts .patch .items ():
608
- container .add_mount (repo_path , f' { PKG_PATH } / { pkg } ' )
608
+ container .add_mount (repo_path , os . sep . join (( PKG_PATH , pkg )) )
609
609
610
610
if opts .env :
611
611
for envvar in opts .env :
@@ -724,7 +724,7 @@ def main():
724
724
print ('RUNNING: ' + ' ' .join (container .command ))
725
725
ret = subprocess .run (container .command )
726
726
if ret .returncode :
727
- print (f 'nibabies: Please report errors to { __bugreports__ } ' )
727
+ print ('nibabies: Please report errors to %s' % __bugreports__ )
728
728
return ret .returncode
729
729
730
730
0 commit comments