Skip to content

Commit 9597cc6

Browse files
committed
use file if defined
1 parent 7027a42 commit 9597cc6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

git_fleximod/cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ def print_help(self, file=None):
1818
for path in candidate_paths:
1919
if os.path.exists(path):
2020
with open(path) as f:
21-
print( f.read())
21+
print( f.read(), file=file)
2222
return
23-
print( "README.md not found.")
23+
print( "README.md not found.", file=file)
2424

2525
def find_root_dir(filename=".gitmodules"):
2626
""" finds the highest directory in tree

0 commit comments

Comments
 (0)