[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[xml] portability patch for pyxsltproc.py
- From: "Bidoul, Stephane" <Stephane Bidoul softwareag com>
- To: <xml gnome org>
- Subject: [xml] portability patch for pyxsltproc.py
- Date: Fri, 4 Jan 2008 18:20:27 +0100
Hi,
Please find
attached a minor portability patch for pyxsltproc.py.
"import os"
is more portable than "import posix", which does not work on windows with python
2.5.
-sbi
Index: pyxsltproc.py
===================================================================
--- pyxsltproc.py (revision 1452)
+++ pyxsltproc.py (working copy)
@@ -6,7 +6,7 @@
#
import sys
import time
-import posix
+import os
import string
import libxml2
# Memory debug specific
@@ -185,7 +185,7 @@
nonet = 1
elif args[i] == "-catalogs" or args[i] == "--catalogs":
try:
- catalogs = posix.environ['SGML_CATALOG_FILES']
+ catalogs = os.environ['SGML_CATALOG_FILES']
except:
catalogs = None
if catalogs != none:
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]