Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make BypassStdoutInterpreter compatible with EmPy 4.x #664

Merged
merged 1 commit into from
Sep 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions colcon_core/shell/template/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,12 @@ def expand_template(template_path, destination_path, data):
class BypassStdoutInterpreter(Interpreter):
"""Interpreter for EmPy which keeps `stdout` unchanged."""

def installProxy(self): # noqa: D102 N802
def installProxy(self, *args, **kwargs): # noqa: D102 N802
# avoid replacing stdout with ProxyFile
pass
# in EmPy 3.x, this function performed in-place modification.
# in EmPy 4.x, it is passed the output stream and is expected to
# return the output stream.
return next(iter(args), None)


cached_tokens = {}
Expand Down
Loading