summaryrefslogtreecommitdiff
path: root/coverage/files.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2013-09-16 22:00:50 -0400
committerNed Batchelder <ned@nedbatchelder.com>2013-09-16 22:00:50 -0400
commit6157eb4ecbc2df45d739f4b656eab644ca628694 (patch)
tree9f70000b24625562f4d1b891c7990d71c2276074 /coverage/files.py
parent0da975d03e30166a34bff3a1110ddf2204973db6 (diff)
parentb5ff17dbadb4ae4c7aaa9d35cfdf6ef633a9ccf3 (diff)
downloadpython-coveragepy-git-6157eb4ecbc2df45d739f4b656eab644ca628694.tar.gz
Automated merge with ssh://bitbucket.org/ned/coveragepy
Diffstat (limited to 'coverage/files.py')
-rw-r--r--coverage/files.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/coverage/files.py b/coverage/files.py
index 8d154c6f..976db4ed 100644
--- a/coverage/files.py
+++ b/coverage/files.py
@@ -290,7 +290,7 @@ def find_python_files(dirname):
continue
for filename in filenames:
# We're only interested in files that look like reasonable Python
- # files: Must end with .py, and must not have certain funny
+ # files: Must end with .py or .pyw, and must not have certain funny
# characters that probably mean they are editor junk.
- if re.match(r"^[^.#~!$@%^&*()+=,]+\.py$", filename):
+ if re.match(r"^[^.#~!$@%^&*()+=,]+\.pyw?$", filename):
yield os.path.join(dirpath, filename)