diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2009-09-22 07:22:56 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2009-09-22 07:22:56 -0400 |
commit | d18c4a8ca50361893eaa7ba86821a136ba7a4807 (patch) | |
tree | d5b682a46e9b44a6edd6e12771ffc831503cb594 /coverage/files.py | |
parent | cfdd8b9c6c9a0fc0bb0d332dd034330a37ea5a1f (diff) | |
download | python-coveragepy-d18c4a8ca50361893eaa7ba86821a136ba7a4807.tar.gz |
The best way to get py3k support: same source runs on both, with some contortions.
Diffstat (limited to 'coverage/files.py')
-rw-r--r-- | coverage/files.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/coverage/files.py b/coverage/files.py index f3fafdf..c16f113 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): |