# HG changeset patch # User maru.newby # Date 1238609496 14400 # Branch py3k # Node ID 61ba43452c96e4ff9ab2bdc48cb8d036fa427aeb # Parent 6915f67dd9add8028b8bd013a9c4dbcb25c7c868 Updating trace output to ignore modules in the temp dir. diff -r 6915f67dd9ad -r 61ba43452c96 Lib/trace.py --- a/Lib/trace.py Wed Apr 01 14:10:40 2009 -0400 +++ b/Lib/trace.py Wed Apr 01 14:11:36 2009 -0400 @@ -53,6 +53,7 @@ import os import re import sys +import tempfile import threading import time import token @@ -225,6 +226,13 @@ print(("Skipping counts file %r: %s" % (self.infile, err)), file=sys.stderr) + def is_ignored_filename(self, filename): + return ( + filename == "" or + filename.startswith("": - continue - if filename.startswith("