Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37560988
en ru br
Репозитории ALT
S:8.3.0-alt1
D:6.2.3-alt1
5.1: 6.2.3-alt2
4.1: 6.2.3-alt1
www.altlinux.org/Changes

Группа :: Науки/Наука о земле
Пакет: grass

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: grass-use-simplejson.patch
Скачать


diff --git a/grass/locale/grass_po_stats.py b/grass/locale/grass_po_stats.py
index c5d6261..8e6ece8 100644
--- a/grass/locale/grass_po_stats.py
+++ b/grass/locale/grass_po_stats.py
@@ -16,7 +16,7 @@
 
 import os, sys
 import subprocess
-import json
+import simplejson
 import glob
 import codecs
 
@@ -126,7 +126,7 @@ def get_stats(languages, directory):
 
 def writejson(stats, outfile):
     # load dictionary into json format
-    fjson = json.dumps(stats, sort_keys=True, indent=4)
+    fjson = simplejson.dumps(stats, sort_keys=True, indent=4)
     # write a string with pretty style
     outjson = os.linesep.join([l.rstrip() for l in  fjson.splitlines()])
     # write out file
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin