Skip to content

Commit 7d62bc9

Browse files
committed
Python 2 compatibility
1 parent 2ef1272 commit 7d62bc9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setuptools_rust/build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def build_extension(self, ext):
7272
# Find where to put the temporary build files created by `cargo`
7373
metadata_command = ["cargo", "metadata", "--manifest-path", ext.path, "--format-version", "1"]
7474
# The decoding is needed for python 3.5 compatibility
75-
metadata = json.loads(check_output(metadata_command).decode())
75+
metadata = json.loads(check_output(metadata_command).decode("utf-8"))
7676
target_dir = metadata["target_directory"]
7777

7878
if not os.path.exists(ext.path):

0 commit comments

Comments
 (0)