Log In
Log In
Places
All Projects
Status Monitor
Collapse sidebar
qmk
python-hjson
python-hjson-python3.12.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-hjson-python3.12.patch of Package python-hjson
From 2a9d5be79e3dc0ea65722d4f6efb0133d16d3f94 Mon Sep 17 00:00:00 2001 From: Oleg Girko <ol@infoserver.lv> Date: Wed, 18 Oct 2023 00:36:20 +0100 Subject: [PATCH] Fix compatibility with Python 3.12 in examples. The collections.OrderedDict class has a different repr in Python 3.12. Signed-off-by: Oleg Girko <ol@infoserver.lv> --- hjson/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hjson/__init__.py b/hjson/__init__.py index 52c9f07..3f71e75 100644 --- a/hjson/__init__.py +++ b/hjson/__init__.py @@ -7,8 +7,9 @@ Decoding Hjson:: >>> import hjson >>> text = "{\n foo: a\n bar: 1\n}" - >>> hjson.loads(text) - OrderedDict([('foo', 'a'), ('bar', 1)]) + >>> d = hjson.loads(text) + >>> d == OrderedDict([('foo', 'a'), ('bar', 1)]) + True Encoding Python object hierarchies:: -- 2.41.0
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Contact
Support
@OBShq
The Open Build Service is an
openSUSE project
.
Log In
Places
Places
All Projects
Status Monitor