diff -r 0bf517e60f54 -r d8bdc55aee1a eric6/DebugClients/Python/PyProfile.py --- a/eric6/DebugClients/Python/PyProfile.py Thu Sep 19 19:39:04 2019 +0200 +++ b/eric6/DebugClients/Python/PyProfile.py Sat Sep 21 13:03:17 2019 +0200 @@ -125,8 +125,8 @@ versionExt = '.py3' # get module name from __file__ - if not isinstance(frame, profile.Profile.fake_frame) and \ - '__file__' in frame.f_globals: + if (not isinstance(frame, profile.Profile.fake_frame) and + '__file__' in frame.f_globals): root, ext = os.path.splitext(frame.f_globals['__file__']) if ext in ['.pyc', '.py', versionExt, '.pyo']: fixedName = root + '.py'