summaryrefslogtreecommitdiff
path: root/coverage/python.py
diff options
context:
space:
mode:
authorloic@dachary.org <loic@dachary.org>2017-01-10 17:31:34 +0100
committerloic@dachary.org <loic@dachary.org>2017-01-10 17:31:34 +0100
commit6da69c9cfcf8874cc423177a9376e90e27218d1d (patch)
tree323fff9ae975451516cfa8757e26b8527271cc0c /coverage/python.py
parentd93a997913baa51989e33c94588d31bd07707b22 (diff)
downloadpython-coveragepy-git-6da69c9cfcf8874cc423177a9376e90e27218d1d.tar.gz
source_for_file helper with unit tests
--HG-- branch : issue-426
Diffstat (limited to 'coverage/python.py')
-rw-r--r--coverage/python.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/coverage/python.py b/coverage/python.py
index ada21e67..5e142d24 100644
--- a/coverage/python.py
+++ b/coverage/python.py
@@ -91,7 +91,7 @@ def get_zip_bytes(filename):
return None
-def _source_for_file(self, filename):
+def source_for_file(filename):
"""Return the source file for `filename`.
Given a file name being traced, return the best guess as to the source