Skip to content

Commit 6aa709c

Browse files
committed
FIX: Adds parentheses to print statements.
1 parent 46a3042 commit 6aa709c

File tree

1 file changed

+4
-4
lines changed
  • nipype/workflows/smri/freesurfer

1 file changed

+4
-4
lines changed

nipype/workflows/smri/freesurfer/utils.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -383,12 +383,12 @@ def copy_files(in_files, out_files):
383383
import shutil
384384
import sys
385385
if len(in_files) != len(out_files):
386-
print "ERROR: Length of input files must be identical to the length of \
387-
outrput files to be copied"
386+
print("ERROR: Length of input files must be identical to the length of " +
387+
"outrput files to be copied")
388388
sys.exit(-1)
389389
for i, in_file in enumerate(in_files):
390390
out_file = out_files[i]
391-
print "copying %s to %s" % (in_file, out_file)
391+
print("copying {0} to {1}".format(in_file, out_file))
392392
shutil.copy(in_file, out_file)
393393
return out_files
394394

@@ -405,7 +405,7 @@ def copy_file(in_file, out_file=None):
405405
in_file = in_file[0]
406406
out_file = os.path.abspath(out_file)
407407
in_file = os.path.abspath(in_file)
408-
print "copying %s to %s" % (in_file, out_file)
408+
print("copying {0} to {1}".format(in_file, out_file))
409409
shutil.copy(in_file, out_file)
410410
return out_file
411411

0 commit comments

Comments
 (0)