eric6/DebugClients/Python/PyProfile.py

changeset 7250
d8bdc55aee1a
parent 6942
2602857055c5
child 7360
9190402e4505
--- 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'

eric ide

mercurial