Diff of /Lib/trace.py [88c94a] .. [278842]  Maximize  Restore

Repo status: analyzing...

  Switch to side-by-side view

--- a/Lib/trace.py
+++ b/Lib/trace.py
@@ -583,7 +583,7 @@
         """
         if why == 'call':
             code = frame.f_code
-            filename = frame.f_globals.get('__file__', None)
+            filename = code.co_filename
             if filename:
                 # XXX modname() doesn't work right for packages, so
                 # the ignore support won't work right for packages