Skip to content

Commit 8d42f06

Browse files
author
Steven Tilley
committed
Remove use of print for python 2 compatibilitiy
1 parent e7bcdca commit 8d42f06

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

heudiconv/cli/run.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,11 @@ def process_extra_commands(outdir, args):
103103

104104

105105
def help_bids():
106-
print('bids specific options can be passed after the bids flag.', file=sys.stdout)
107-
print('For example, "--bids notop".', file=sys.stdout)
108-
print('The currently supported options are:', file=sys.stdout)
106+
sys.stderr.write('bids specific options can be passed after the bids flag.\n'
107+
'For example, "--bids notop".\n'
108+
'The currently supported options are:\n')
109109
for option, helpstr in BIDS_OPTIONS:
110-
print('{}: {}'.format(option, helpstr), file=sys.stdout)
110+
sys.stderr.write('{}: {}\n'.format(option, helpstr))
111111

112112

113113
def main(argv=None):

0 commit comments

Comments
 (0)