--- a/eric6/E5XML/ProjectReader.py Sat Sep 21 15:37:43 2019 +0200 +++ b/eric6/E5XML/ProjectReader.py Sat Sep 21 16:04:17 2019 +0200 @@ -44,24 +44,28 @@ self.readNext() if self.isStartElement(): if self.name() == "Project": - self.version = \ - self.attribute("version", projectFileFormatVersion) + self.version = self.attribute( + "version", projectFileFormatVersion) if self.version not in self.supportedVersions: self.raiseUnsupportedFormatVersion(self.version) elif self.name() == "Language": - self.project.pdata["SPELLLANGUAGE"] = \ + self.project.pdata["SPELLLANGUAGE"] = ( self.readElementText() + ) elif self.name() == "ProjectWordList": - self.project.pdata["SPELLWORDS"] = \ + self.project.pdata["SPELLWORDS"] = ( Utilities.toNativeSeparators(self.readElementText()) + ) elif self.name() == "ProjectExcludeList": - self.project.pdata["SPELLEXCLUDES"] = \ + self.project.pdata["SPELLEXCLUDES"] = ( Utilities.toNativeSeparators(self.readElementText()) + ) elif self.name() == "Hash": self.project.pdata["HASH"] = self.readElementText() elif self.name() == "ProgLanguage": - self.project.pdata["MIXEDLANGUAGE"] = \ - int(self.attribute("mixed", "0")) + self.project.pdata["MIXEDLANGUAGE"] = int( + self.attribute("mixed", "0") + ) self.project.pdata["PROGLANGUAGE"] = self.readElementText() if self.project.pdata["PROGLANGUAGE"] == "Python": # convert Python to the more specific Python2 @@ -77,14 +81,17 @@ elif self.name() == "Email": self.project.pdata["EMAIL"] = self.readElementText() elif self.name() == "TranslationPattern": - self.project.pdata["TRANSLATIONPATTERN"] = \ + self.project.pdata["TRANSLATIONPATTERN"] = ( Utilities.toNativeSeparators(self.readElementText()) + ) elif self.name() == "TranslationsBinPath": - self.project.pdata["TRANSLATIONSBINPATH"] = \ + 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": @@ -105,8 +112,9 @@ elif self.name() == "Others": self.__readFiles("Others", "Other", "OTHERS") elif self.name() == "MainScript": - self.project.pdata["MAINSCRIPT"] = \ + self.project.pdata["MAINSCRIPT"] = ( Utilities.toNativeSeparators(self.readElementText()) + ) elif self.name() == "Vcs": self.__readVcs() elif self.name() == "FiletypeAssociations":