summaryrefslogtreecommitdiff
path: root/coverage/control.py
diff options
context:
space:
mode:
Diffstat (limited to 'coverage/control.py')
-rw-r--r--coverage/control.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/coverage/control.py b/coverage/control.py
index 01feef2..346ccf2 100644
--- a/coverage/control.py
+++ b/coverage/control.py
@@ -314,8 +314,7 @@ class Coverage(object):
Returns a boolean: True if the file should be traced, False if not.
"""
- module_globals = frame.f_globals if frame is not None else {}
- reason = self.inorout.check_include_omit_etc(filename, module_globals)
+ reason = self.inorout.check_include_omit_etc(filename, frame)
if self.debug.should('trace'):
if not reason:
msg = "Including %r" % (filename,)