From e1d192c76b5e6c3cc84f05e00f6d18744ba879ac Mon Sep 17 00:00:00 2001 From: Hoil Date: Fri, 23 Jan 2026 10:27:12 -0800 Subject: [PATCH 1/2] update to python3 --- .gitignore | 1 + jsonrpcake/output.py | 11 +++-------- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/.gitignore b/.gitignore index 9c5d32a..cc4dbc0 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ README.html htmlcov .idea .DS_Store +*.egg-info \ No newline at end of file diff --git a/jsonrpcake/output.py b/jsonrpcake/output.py index d45fb78..fb39c6a 100644 --- a/jsonrpcake/output.py +++ b/jsonrpcake/output.py @@ -47,14 +47,9 @@ class BinarySuppressedError(Exception): def write(stream, outfile, flush): """Write the output stream.""" - try: - # Writing bytes so we use the buffer interface (Python 3). - buf = outfile.buffer - except AttributeError: - buf = outfile for chunk in stream: - buf.write(chunk) + outfile.write(chunk) if flush: outfile.flush() @@ -78,7 +73,7 @@ def write_with_colors_win_py3(stream, outfile, flush): def build_output_stream(args, env, request, response): """Build and return a chain of iterators over the `request`-`response` - exchange each of which yields `bytes` chunks. + exchange each of which yields chunks. """ @@ -101,7 +96,7 @@ def build_output_stream(args, env, request, response): if env.stdout_isatty and resp: # Ensure a blank line after the response body. # For terminal output only. - output.append([b'\n\n']) + output.append(['\n\n']) return chain(*output) From 808a6f458af74187a1488f02fa263b043b12b117 Mon Sep 17 00:00:00 2001 From: Hoil Date: Tue, 27 Jan 2026 17:23:50 -0800 Subject: [PATCH 2/2] use internal pypi --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 1f14a76..1a3e9a6 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,2 @@ Pygments>=1.5 -git+https://github.com/flowroute/jsonrpc-ns.git +jsonrpc-ns