[gimp-web/migrate/py3] Add object_hook=OrderedDict for JSON parsing
- From: Pat David <patdavid src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp-web/migrate/py3] Add object_hook=OrderedDict for JSON parsing
- Date: Tue, 16 Jul 2019 02:02:12 +0000 (UTC)
commit 180f9de586aeb04549f069a50e448097d3ddbe5e
Author: Pat David <patdavid gmail com>
Date: Mon Jul 15 21:02:10 2019 -0500
Add object_hook=OrderedDict for JSON parsing
pelicanconf.local.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/pelicanconf.local.py b/pelicanconf.local.py
index 8e5db33d..a12b1200 100644
--- a/pelicanconf.local.py
+++ b/pelicanconf.local.py
@@ -154,7 +154,7 @@ CACHE_CONTENT = True
import json
from collections import OrderedDict
with open('GIMP_VERSIONS') as data:
- GIMP = json.load(data, object_pairs_hook=OrderedDict)
+ GIMP = json.load(data,object_hook=OrderedDict, object_pairs_hook=OrderedDict)
if 'STABLE' in GIMP:
# Set the current stable GIMP version from
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]