Skip to content

Commit 98d4d41

Browse files
committed
fix 3.5ism
1 parent 2415a64 commit 98d4d41

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

unpythonic/net/server.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,11 @@ def doc(obj):
213213
# TODO: detect stdout, stderr and redirect to the appropriate stream.
214214
def server_print(*values, **kwargs):
215215
"""Print to the original stdout of the server process."""
216-
print(*values, **kwargs, file=_original_stdout)
216+
# Python 3.4
217+
options = dict(**kwargs)
218+
options["file"] = _original_stdout
219+
print(*values, **options)
220+
# print(*values, **kwargs, file=_original_stdout) # TODO: Python 3.5+, so when we drop Python 3.4...
217221

218222
def halt(doit=True):
219223
"""Tell the REPL server to shut down after the last client has disconnected.

0 commit comments

Comments
 (0)