ome / omero-py

Python project containing Ice remoting code for OMERO
https://www.openmicroscopy.org/omero
GNU General Public License v2.0
22 stars 32 forks source link

Convert HTTP request JSON content from bytes to string. #213

Closed mtbc closed 4 years ago

mtbc commented 4 years ago

Fixes https://github.com/ome/omero-cli-render/issues/39 by handling Python 3.5's,

TypeError: the JSON object must be str, not 'bytes'
joshmoore commented 4 years ago

Aha! Thanks, @mtbc.

joshmoore commented 4 years ago

Python 3.6 looks to still be functioning fine. Trusting the testing of Python 3.5 to Mark himself.

mtbc commented 4 years ago

Thank you. Been wondering if it's worth reviewing,

omero-python-superbuild$ git grep --recurse-submodule json.loads
joshmoore commented 4 years ago

+71 hits under https://github.com/search?q=org%3Aome+json.loads&type=Code