[XML-SIG] fixes for PyXML and Python2.3

Andrew Straw andrew.straw@adelaide.edu.au
Mon, 26 May 2003 17:24:09 +0930


Hi all,

Here's a diff of what I had to do against a CVS checkout of PyXML to 
get it to build with Python 2.3b1.  Hopefully someone can check these 
trivial changes into CVS to save other poor souls from tracking down 
little bugs like this.

Index: setup.py
===================================================================
RCS file: /cvsroot/pyxml/xml/setup.py,v
retrieving revision 1.79
diff -c -r1.79 setup.py
*** setup.py	26 Jan 2003 10:28:25 -0000	1.79
--- setup.py	26 May 2003 07:43:28 -0000
***************
*** 6,11 ****
--- 6,12 ----

   import sys, os, string

+ import distutils
   from distutils.core import setup, Extension
   from setupext import Data_Files, install_Data_Files, 
wininst_request_delete
   from distutils.sysconfig import get_config_vars
Index: xml/FtCore.py
===================================================================
RCS file: /cvsroot/pyxml/xml/xml/FtCore.py,v
retrieving revision 1.4
diff -c -r1.4 FtCore.py
*** xml/FtCore.py	27 Mar 2003 22:27:42 -0000	1.4
--- xml/FtCore.py	26 May 2003 07:43:29 -0000
***************
*** 52,58 ****
               locale_dir = os.path.join(_top, pkg.replace(".", os.sep))
               try:
                   f = gettext.translation('4Suite', locale_dir).gettext
!             except IOError:
                   f = _
               _cache[pkg] = f
           return _cache[pkg]
--- 52,58 ----
               locale_dir = os.path.join(_top, pkg.replace(".", os.sep))
               try:
                   f = gettext.translation('4Suite', locale_dir).gettext
!             except (IOError,LookupError):
                   f = _
               _cache[pkg] = f
           return _cache[pkg]