E5XML/ProjectReader.py

branch
Py2 comp.
changeset 3057
10516539f238
parent 2525
8b507a9a2d40
parent 2992
dbdf27746da5
child 3058
0a02c433f52d
--- a/E5XML/ProjectReader.py	Tue Oct 15 22:03:54 2013 +0200
+++ b/E5XML/ProjectReader.py	Fri Oct 18 23:00:41 2013 +0200
@@ -48,7 +48,8 @@
                     if self.version not in self.supportedVersions:
                         self.raiseUnsupportedFormatVersion(self.version)
                 elif self.name() == "Language":
-                    self.project.pdata["SPELLLANGUAGE"] = [self.readElementText()]
+                    self.project.pdata["SPELLLANGUAGE"] = [
+                        self.readElementText()]
                 elif self.name() == "ProjectWordList":
                     self.project.pdata["SPELLWORDS"] = \
                         [Utilities.toNativeSeparators(self.readElementText())]
@@ -60,14 +61,17 @@
                 elif self.name() == "ProgLanguage":
                     self.project.pdata["MIXEDLANGUAGE"] = \
                         [int(self.attribute("mixed", "0"))]
-                    self.project.pdata["PROGLANGUAGE"] = [self.readElementText()]
+                    self.project.pdata["PROGLANGUAGE"] = [
+                        self.readElementText()]
                     if self.project.pdata["PROGLANGUAGE"][0] == "Python":
                         # convert Python to the more specific Python2
                         self.project.pdata["PROGLANGUAGE"][0] = "Python2"
                 elif self.name() == "ProjectType":
-                    self.project.pdata["PROJECTTYPE"] = [self.readElementText()]
+                    self.project.pdata["PROJECTTYPE"] = [
+                        self.readElementText()]
                 elif self.name() == "Description":
-                    self.project.pdata["DESCRIPTION"] = [self.readElementText()]
+                    self.project.pdata["DESCRIPTION"] = [
+                        self.readElementText()]
                 elif self.name() == "Version":
                     self.project.pdata["VERSION"] = [self.readElementText()]
                 elif self.name() == "Author":
@@ -81,16 +85,19 @@
                     self.project.pdata["TRANSLATIONSBINPATH"] = \
                         [Utilities.toNativeSeparators(self.readElementText())]
                 elif self.name() == "Eol":
-                    self.project.pdata["EOL"] = [int(self.attribute("index", "0"))]
+                    self.project.pdata["EOL"] = [
+                        int(self.attribute("index", "0"))]
                 elif self.name() == "Sources":
                     self.__readFiles("Sources", "Source", "SOURCES")
                 elif self.name() == "Forms":
                     self.__readFiles("Forms", "Form", "FORMS")
                 elif self.name() == "Translations":
-                    self.__readFiles("Translations", "Translation", "TRANSLATIONS")
+                    self.__readFiles(
+                        "Translations", "Translation", "TRANSLATIONS")
                 elif self.name() == "TranslationExceptions":
-                    self.__readFiles("TranslationExceptions", "TranslationException",
-                                     "TRANSLATIONEXCEPTIONS")
+                    self.__readFiles(
+                        "TranslationExceptions", "TranslationException",
+                        "TRANSLATIONEXCEPTIONS")
                 elif self.name() == "Resources":
                     self.__readFiles("Resources", "Resource", "RESOURCES")
                 elif self.name() == "Interfaces":

eric ide

mercurial