mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-07-11 04:18:07 -07:00
Adds trivial patches to main code, fixes test_cbor.py test_sortkeys() wrongly assuming dictionary keys may not always be sorted when added in sorted order. Fix the test phase not finding the c extension module. Update metadata.xml to github repo. Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Brian Dolbec <dolsen@gentoo.org>
11 lines
361 B
Diff
11 lines
361 B
Diff
--- a/cbor/cbor.py 2020-07-19 13:24:39.497775767 -0700
|
|
+++ b/cbor/cbor.py 2020-07-19 13:24:39.497775767 -0700
|
|
@@ -260,6 +260,8 @@
|
|
"""
|
|
if data is None:
|
|
raise ValueError("got None for buffer to decode in loads")
|
|
+ elif data == b'':
|
|
+ raise ValueError("got zero length string loads")
|
|
fp = StringIO(data)
|
|
return _loads(fp)[0]
|