E4XML/ProjectHandler.py

changeset 5
fa319c01b604
parent 0
de9c2efb9d02
child 12
1d8dd9706f46
diff -r ed9829a5fe55 -r fa319c01b604 E4XML/ProjectHandler.py
--- a/E4XML/ProjectHandler.py	Mon Dec 28 16:34:27 2009 +0000
+++ b/E4XML/ProjectHandler.py	Mon Dec 28 17:05:28 2009 +0000
@@ -106,14 +106,14 @@
         """
         Handler method for the "ProjectWordList" end tag.
         """
-        path = unicode(Utilities.toNativeSeparators(self.utf8_to_code(self.buffer)))
+        path = Utilities.toNativeSeparators(self.utf8_to_code(self.buffer))
         self.project.pdata["SPELLWORDS"] = [path]
         
     def endProjectExcludeList(self):
         """
         Handler method for the "ProjectExcludeList" end tag.
         """
-        path = unicode(Utilities.toNativeSeparators(self.utf8_to_code(self.buffer)))
+        path = Utilities.toNativeSeparators(self.utf8_to_code(self.buffer))
         self.project.pdata["SPELLEXCLUDES"] = [path]
         
     def startProgLanguage(self, attrs):
@@ -323,7 +323,7 @@
         Handler method for the "TranslationPattern" end tag.
         """
         self.project.pdata["TRANSLATIONPATTERN"].append(
-            unicode(Utilities.toNativeSeparators(self.utf8_to_code(self.buffer))))
+            Utilities.toNativeSeparators(self.utf8_to_code(self.buffer)))
         
     def startTranslationsBinPath(self, attrs):
         """
@@ -339,7 +339,7 @@
         Handler method for the "TranslationsBinPath" end tag.
         """
         if self.version >= '4.3':
-            path = unicode(Utilities.toNativeSeparators(self.utf8_to_code(self.buffer)))
+            path = Utilities.toNativeSeparators(self.utf8_to_code(self.buffer))
         else:
             path = self.__buildPath()
         self.project.pdata["TRANSLATIONSBINPATH"].append(path)
@@ -358,7 +358,7 @@
         Handler method for the "Source" end tag.
         """
         if self.version >= '4.3':
-            path = unicode(Utilities.toNativeSeparators(self.utf8_to_code(self.buffer)))
+            path = Utilities.toNativeSeparators(self.utf8_to_code(self.buffer))
         else:
             path = self.__buildPath()
         self.project.pdata["SOURCES"].append(path)
@@ -377,7 +377,7 @@
         Handler method for the "Form" end tag.
         """
         if self.version >= '4.3':
-            path = unicode(Utilities.toNativeSeparators(self.utf8_to_code(self.buffer)))
+            path = Utilities.toNativeSeparators(self.utf8_to_code(self.buffer))
         else:
             path = self.__buildPath()
         self.project.pdata["FORMS"].append(path)
@@ -396,7 +396,7 @@
         Handler method for the "Translation" end tag.
         """
         if self.version >= '4.3':
-            path = unicode(Utilities.toNativeSeparators(self.utf8_to_code(self.buffer)))
+            path = Utilities.toNativeSeparators(self.utf8_to_code(self.buffer))
         else:
             path = self.__buildPath()
         self.project.pdata["TRANSLATIONS"].append(path)
@@ -415,7 +415,7 @@
         Handler method for the "TranslationException" end tag.
         """
         if self.version >= '4.3':
-            path = unicode(Utilities.toNativeSeparators(self.utf8_to_code(self.buffer)))
+            path = Utilities.toNativeSeparators(self.utf8_to_code(self.buffer))
         else:
             path = self.__buildPath()
         self.project.pdata["TRANSLATIONEXCEPTIONS"].append(path)
@@ -434,7 +434,7 @@
         Handler method for the "Resource" end tag.
         """
         if self.version >= '4.3':
-            path = unicode(Utilities.toNativeSeparators(self.utf8_to_code(self.buffer)))
+            path = Utilities.toNativeSeparators(self.utf8_to_code(self.buffer))
         else:
             path = self.__buildPath()
         self.project.pdata["RESOURCES"].append(path)
@@ -453,7 +453,7 @@
         Handler method for the "Interface" end tag.
         """
         if self.version >= '4.3':
-            path = unicode(Utilities.toNativeSeparators(self.utf8_to_code(self.buffer)))
+            path = Utilities.toNativeSeparators(self.utf8_to_code(self.buffer))
         else:
             path = self.__buildPath()
         self.project.pdata["INTERFACES"].append(path)
@@ -472,7 +472,7 @@
         Handler method for the "Other" end tag.
         """
         if self.version >= '4.3':
-            path = unicode(Utilities.toNativeSeparators(self.utf8_to_code(self.buffer)))
+            path = Utilities.toNativeSeparators(self.utf8_to_code(self.buffer))
         else:
             path = self.__buildPath()
         self.project.pdata["OTHERS"].append(path)
@@ -491,7 +491,7 @@
         Handler method for the "MainScript" end tag.
         """
         if self.version >= '4.3':
-            path = unicode(Utilities.toNativeSeparators(self.utf8_to_code(self.buffer)))
+            path = Utilities.toNativeSeparators(self.utf8_to_code(self.buffer))
         else:
             path = self.__buildPath()
         self.project.pdata["MAINSCRIPT"] = [path]
@@ -572,7 +572,7 @@
         Handler method for the "TranslationPrefix" end tag.
         """
         if self.version >= '4.3':
-            path = unicode(Utilities.toNativeSeparators(self.utf8_to_code(self.buffer)))
+            path = Utilities.toNativeSeparators(self.utf8_to_code(self.buffer))
         else:
             path = self.__buildPath()
         if not path.endswith("_"):

eric ide

mercurial