Skip to content

Commit

Permalink
Merge 8467b25 into 232de79
Browse files Browse the repository at this point in the history
  • Loading branch information
arcivanov committed Oct 9, 2022
2 parents 232de79 + 8467b25 commit ce3ec30
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/python/pybuilder/terminal.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,5 +132,6 @@ def print_error_line(text=""):
def print_file_content(file_name, line_prefix=" "):
print_text_line("File {0}:".format(file_name))

for line in open(file_name):
print_text(line_prefix + line)
with open(file_name) as f:
for line in f:
print_text(line_prefix + line)

0 comments on commit ce3ec30

Please sign in to comment.