summaryrefslogtreecommitdiff
path: root/coverage/files.py
diff options
context:
space:
mode:
Diffstat (limited to 'coverage/files.py')
-rw-r--r--coverage/files.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/coverage/files.py b/coverage/files.py
index 2836d4e5..5c2ff1ac 100644
--- a/coverage/files.py
+++ b/coverage/files.py
@@ -159,9 +159,8 @@ else:
@contract(returns='unicode')
-def abs_file(filename):
- """Return the absolute normalized form of `filename`."""
- path = os.path.expandvars(os.path.expanduser(filename))
+def abs_file(path):
+ """Return the absolute normalized form of `path`."""
try:
path = os.path.realpath(path)
except UnicodeError: