Removed the usage of the codecs module in the Qt help generator.

Sun, 09 Jan 2011 19:16:19 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 09 Jan 2011 19:16:19 +0100
changeset 839
9605f699731f
parent 837
10547522aa98
child 840
7d86780fea93

Removed the usage of the codecs module in the Qt help generator.

DocumentationTools/QtHelpGenerator.py file | annotate | diff | comparison | revisions
--- 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