--- a/patch_pyxml.py Sun Jan 10 13:59:15 2010 +0000 +++ b/patch_pyxml.py Sun Jan 10 19:19:52 2010 +0000 @@ -62,7 +62,7 @@ try: filename = \ os.path.join(pyxmlModDir, "parsers", "xmlproc", "xmlutils.py") - f = open(filename, "r") + f = open(filename, "r", encoding = "utf-8") except EnvironmentError: print("Could not find the pyXML distribution. Please use the patch_pyxml.py") print("script to apply a patch needed to fix a bug causing it to fail for") @@ -99,7 +99,7 @@ try: filename = \ os.path.join(pyxmlModDir, "parsers", "xmlproc", "xmlutils.py") - f = open(filename, "r") + f = open(filename, "r", encoding = "utf-8") except EnvironmentError: print("The file %s does not exist. Aborting." % filename) sys.exit(1) @@ -111,7 +111,7 @@ patched = False sn = "xmlutils.py" - s = open(sn, "w") + s = open(sn, "w", encoding = "utf-8") for line in lines: if patchPositionFound: if not line.startswith(\ @@ -188,4 +188,4 @@ patchPyXML() if __name__ == "__main__": - main() \ No newline at end of file + main()