15
0
forked from pool/python-json5

- update to 0.9.10:

* Updated the //README.md to be clear that parsing arbitrary JS
    code may not work.
  * Fixed serialization for objects that subclass `int` or `float`:
    Previously we would use the objects __str__ implementation, but
    that might result in an illegal JSON5 value if the object had
    customized __str__ to return something illegal. Instead,
    we follow the lead of the `JSON` module and call `int.__repr__`
    or `float.__repr__` directly.
  * While I was at it, I added tests for dumps(-inf) and dumps(nan)
    when those were supposed to be disallowed by `allow_nan=False`.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-json5?expand=0&rev=15
This commit is contained in:
2022-09-24 10:55:08 +00:00
committed by Git OBS Bridge
parent fba20e86f1
commit 0f7c8e176a
4 changed files with 19 additions and 4 deletions

View File

@@ -1,3 +1,18 @@
-------------------------------------------------------------------
Sat Sep 24 10:54:29 UTC 2022 - Dirk Müller <dmueller@suse.com>
- update to 0.9.10:
* Updated the //README.md to be clear that parsing arbitrary JS
code may not work.
* Fixed serialization for objects that subclass `int` or `float`:
Previously we would use the objects __str__ implementation, but
that might result in an illegal JSON5 value if the object had
customized __str__ to return something illegal. Instead,
we follow the lead of the `JSON` module and call `int.__repr__`
or `float.__repr__` directly.
* While I was at it, I added tests for dumps(-inf) and dumps(nan)
when those were supposed to be disallowed by `allow_nan=False`.
-------------------------------------------------------------------
Sun May 29 20:17:37 UTC 2022 - Dirk Müller <dmueller@suse.com>