--- a/eric6/Project/UicLoadUi.py Tue Sep 24 19:08:10 2019 +0200 +++ b/eric6/Project/UicLoadUi.py Tue Sep 24 19:44:17 2019 +0200 @@ -79,8 +79,11 @@ mapped = mapped.replace("const ", "") # 2. replace QString and QStringList - mapped = mapped.replace("QStringList", "list")\ - .replace("QString", "str") + mapped = ( + mapped + .replace("QStringList", "list")\ + .replace("QString", "str") + ) # 3. replace double by float mapped = mapped.replace("double", "float") @@ -157,21 +160,20 @@ if parameterNames: for index in range(len(parameterNames)): if not parameterNames[index]: - parameterNames[index] = \ - QByteArray("p{0:d}".format(index) - .encode("utf-8")) + parameterNames[index] = QByteArray( + "p{0:d}".format(index).encode("utf-8") + ) parameterNamesList = [bytes(n).decode() for n in parameterNames] signatureDict["parameter_names"] = parameterNamesList methNamesSig = ", ".join(parameterNamesList) if methNamesSig: - pythonSignature = \ - "on_{0}_{1}(self, {2})".format( - name, - bytes(metaMethod.methodSignature()) - .decode().split("(")[0], - methNamesSig) + pythonSignature = "on_{0}_{1}(self, {2})".format( + name, + bytes(metaMethod.methodSignature()) + .decode().split("(")[0], + methNamesSig) else: pythonSignature = "on_{0}_{1}(self)".format( name,