--- a/eric6/DataViews/PyProfileDialog.py Thu Sep 19 19:39:04 2019 +0200 +++ b/eric6/DataViews/PyProfileDialog.py Sat Sep 21 13:03:17 2019 +0200 @@ -12,8 +12,10 @@ import pickle from PyQt5.QtCore import Qt -from PyQt5.QtWidgets import QDialog, QDialogButtonBox, QMenu, QHeaderView, \ - QTreeWidgetItem, QApplication +from PyQt5.QtWidgets import ( + QDialog, QDialogButtonBox, QMenu, QHeaderView, QTreeWidgetItem, + QApplication +) from E5Gui import E5MessageBox @@ -172,14 +174,15 @@ if self.cancelled: return - if not (self.ericpath and - func[0].startswith(self.ericpath)) and \ - not func[0].startswith("DebugClients") and \ - func[0] != "profile" and \ - not (exclude and ( - func[0].startswith(self.pyLibPath) or func[0] == "")): - if self.file is None or func[0].startswith(self.file) or \ - func[0].startswith(self.pyLibPath): + if (not (self.ericpath and + func[0].startswith(self.ericpath)) and + not func[0].startswith("DebugClients") and + func[0] != "profile" and + not (exclude and (func[0].startswith(self.pyLibPath) or + func[0] == "") + )): + if (self.file is None or func[0].startswith(self.file) or + func[0].startswith(self.pyLibPath)): # calculate the totals total_calls += nc prim_calls += cc