From ff9099051e0daff7b08035713eeca5696ab3217a Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Tue, 22 Sep 2009 07:22:56 -0400 Subject: The best way to get py3k support: same source runs on both, with some contortions. --- coverage/files.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'coverage/files.py') diff --git a/coverage/files.py b/coverage/files.py index f3fafdfb..c16f113d 100644 --- a/coverage/files.py +++ b/coverage/files.py @@ -31,7 +31,7 @@ class FileLocator: An absolute path with no redundant components and normalized case. """ - if not self.canonical_filename_cache.has_key(filename): + if filename not in self.canonical_filename_cache: f = filename if os.path.isabs(f) and not os.path.exists(f): if not self.get_zip_data(f): -- cgit v1.2.1