From: Brett Cannon Date: Wed, 11 Apr 2012 01:05:53 +0000 (-0400) Subject: Make the trace module ignore modules whose names start with "<" and X-Git-Tag: v3.3.0a3~260 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9fe92d1de52fcb63527b2cffa5dbfbc2ae719508;p=python Make the trace module ignore modules whose names start with "<" and end with ">", i.e. follow convention. --- diff --git a/Lib/trace.py b/Lib/trace.py index 850369b9ff..885824aff2 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 6eb401c4f7..f7440eea46 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 + "