DocumentationTools/QtHelpGenerator.py

changeset 839
9605f699731f
parent 791
9ec2ac20e54e
child 945
8cd4d08fa9f6
child 1510
e75ecf2bd9dd
--- a/DocumentationTools/QtHelpGenerator.py	Sun Jan 09 18:57:07 2011 +0100
+++ b/DocumentationTools/QtHelpGenerator.py	Sun Jan 09 19:16:19 2011 +0100
@@ -10,7 +10,6 @@
 import sys
 import os
 import shutil
-import codecs
 import subprocess
 
 from Utilities import joinext, relpath, html_encode
@@ -233,7 +232,8 @@
         }
         
         txt = self.__convertEol(HelpProject.format(**helpAttribs), newline)
-        f = codecs.open(os.path.join(self.outputDir, HelpProjectFile), 'w', 'utf-8')
+        f = open(os.path.join(self.outputDir, HelpProjectFile), "w", 
+                 encoding = "utf-8", newline = newline)
         f.write(txt)
         f.close()
         
@@ -244,8 +244,8 @@
             }
             
             txt = self.__convertEol(HelpCollection.format(**collectionAttribs), newline)
-            f = codecs.open(os.path.join(self.outputDir, HelpCollectionProjectFile), 
-                            'w', 'utf-8')
+            f = open(os.path.join(self.outputDir, HelpCollectionProjectFile), 
+                     "w", encoding = "utf-8", newline = newline)
             f.write(txt)
             f.close()
         

eric ide

mercurial