Skip to content

Commit

Permalink
BUG: Fix pd.show_versions as_json invalid JSON (pandas-dev#39701)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexprincel committed Feb 11, 2021
1 parent 6635fa1 commit 9f72f4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pandas/util/_print_versions.py
Expand Up @@ -107,7 +107,7 @@ def show_versions(as_json: Union[str, bool] = False) -> None:
j = {"system": sys_info, "dependencies": deps}

if as_json is True:
print(j)
print(json.dumps(j))
else:
assert isinstance(as_json, str) # needed for mypy
with codecs.open(as_json, "wb", encoding="utf8") as f:
Expand Down

0 comments on commit 9f72f4e

Please sign in to comment.