From 74c04a7baac2b987c68ffb2923b287b55e154b5c Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Mon, 26 Feb 2018 08:43:58 -0500 Subject: More uniformity --- coverage/control.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'coverage/control.py') 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,) -- cgit v1.2.1