Skip to content

Commit

Permalink
Fix jdumps.
Browse files Browse the repository at this point in the history
  • Loading branch information
lxuechen committed Jul 25, 2022
1 parent dfcef8b commit e7dae52
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ml_swissknife/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,8 @@ def jdump(obj: Union[str, dict, list], f: str, mode="w", indent=4, to_gcs=False,
logging.warning(f"Uploading to gcs: {f}")


def jdumps(obj, indent=4):
return json.dumps(obj, indent=indent)
def jdumps(obj, indent=4, default=str):
return json.dumps(obj, indent=indent, default=default)


def jload(f: Union[str, io.IOBase], mode="r"):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import setuptools

version = "0.1.0"
version = "0.1.1"

extras_require = {
"latex": ("bibtexparser",)
Expand Down

0 comments on commit e7dae52

Please sign in to comment.