Skip to content

Commit

Permalink
remove existing 'file' arg when overwriting print
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias Simetsreiter committed Mar 21, 2024
1 parent 5902909 commit f352086
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion conans/client/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,8 @@ def _load_python_file(conan_file_path):
raise NotFoundException("%s not found!" % conan_file_path)

def new_print(*args, **kwargs): # Make sure that all user python files print() goes to stderr
print(*args, **kwargs, file=sys.stderr)
kwargs['file'] = sys.stderr
print(*args, **kwargs)

module_id = str(uuid.uuid1())
current_dir = os.path.dirname(conan_file_path)
Expand Down

0 comments on commit f352086

Please sign in to comment.