From 9fe92d1de52fcb63527b2cffa5dbfbc2ae719508 Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Tue, 10 Apr 2012 21:05:53 -0400 Subject: Make the trace module ignore modules whose names start with "<" and end with ">", i.e. follow convention. --- Lib/trace.py | 3 +-- Misc/NEWS | 4 ++++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Lib/trace.py b/Lib/trace.py index 850369b..885824a 100644 --- a/Lib/trace.py +++ b/Lib/trace.py @@ -244,8 +244,7 @@ class CoverageResults: """Return True if the filename does not refer to a file we want to have reported. """ - return (filename == "" or - filename.startswith("') def update(self, other): """Merge in the data from another CoverageResults""" diff --git a/Misc/NEWS b/Misc/NEWS index 6eb401c..f7440ee 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -19,6 +19,10 @@ Core and Builtins Library ------- +- trace.CoverageResults.is_ignored_filename() now ignores any name that starts + with "<" and ends with ">" instead of special-casing "" and + "