diff -r bc5b1b00560a -r c5e3705073eb eric6/DocumentationTools/QtHelpGenerator.py --- a/eric6/DocumentationTools/QtHelpGenerator.py Sat Sep 21 13:37:58 2019 +0200 +++ b/eric6/DocumentationTools/QtHelpGenerator.py Sat Sep 21 15:37:43 2019 +0200 @@ -14,8 +14,10 @@ import shutil import subprocess -from Utilities import joinext, relpath, html_encode, getQtBinariesPath, \ - generateQtToolName, isExecutable +from Utilities import ( + joinext, relpath, html_encode, getQtBinariesPath, generateQtToolName, + isExecutable +) HelpCollection = r"""<?xml version="1.0" encoding="utf-8" ?> <QHelpCollectionProject version="1.0"> @@ -82,8 +84,9 @@ self.namespace = namespace self.virtualFolder = virtualFolder self.filterName = filterName - self.filterAttributes = \ + self.filterAttributes = ( filterAttributes and filterAttributes.split(':') or [] + ) self.relPath = relpath(self.htmlDir, self.outputDir) self.title = title self.createCollection = createCollection @@ -248,9 +251,11 @@ f.write(txt) f.close() - if self.createCollection and \ - not os.path.exists( - os.path.join(self.outputDir, HelpCollectionProjectFile)): + if ( + self.createCollection and + not os.path.exists(os.path.join( + self.outputDir, HelpCollectionProjectFile)) + ): collectionAttribs = { "helpfile": HelpHelpFile, }