packages: python-blockdiag/ordereddict.patch - can do OrderedDict on py2.4 ...

glen glen at pld-linux.org
Sun Dec 4 20:56:42 CET 2011


Author: glen                         Date: Sun Dec  4 19:56:42 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- can do OrderedDict on py2.4 as well then

---- Files affected:
packages/python-blockdiag:
   ordereddict.patch (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: packages/python-blockdiag/ordereddict.patch
diff -u packages/python-blockdiag/ordereddict.patch:1.1 packages/python-blockdiag/ordereddict.patch:1.2
--- packages/python-blockdiag/ordereddict.patch:1.1	Sun Dec  4 20:54:55 2011
+++ packages/python-blockdiag/ordereddict.patch	Sun Dec  4 20:56:37 2011
@@ -1,5 +1,5 @@
---- blockdiag-1.1.1/./src/blockdiag/utils/fontmap.py~	2011-11-19 18:33:54.000000000 +0200
-+++ blockdiag-1.1.1/./src/blockdiag/utils/fontmap.py	2011-12-04 21:53:52.812019538 +0200
+--- blockdiag-1.1.1/src/blockdiag/utils/fontmap.py	2011-12-04 21:55:40.867031987 +0200
++++ blockdiag-1.1.1/src/blockdiag/utils/fontmap.py	2011-12-04 21:55:40.867031987 +0200
 @@ -18,7 +18,12 @@
  import sys
  import copy
@@ -14,3 +14,12 @@
  from ConfigParser import SafeConfigParser
  from blockdiag.utils.collections import namedtuple
  
+@@ -93,7 +98,7 @@
+         self.set_default_font(None)
+ 
+     def _parse_config(self, conffile):
+-        if sys.version_info > (2, 6):
++        if sys.version_info > (2, 4):
+             config = SafeConfigParser(dict_type=OrderedDict)
+         else:
+             config = SafeConfigParser()
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/python-blockdiag/ordereddict.patch?r1=1.1&r2=1.2&f=u



More information about the pld-cvs-commit mailing list