summaryrefslogtreecommitdiff
path: root/coverage/files.py
diff options
context:
space:
mode:
Diffstat (limited to 'coverage/files.py')
-rw-r--r--coverage/files.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/coverage/files.py b/coverage/files.py
index 3cf87faa..09f09da7 100644
--- a/coverage/files.py
+++ b/coverage/files.py
@@ -145,13 +145,7 @@ else:
@contract(returns='unicode')
def abs_file(path):
"""Return the absolute normalized form of `path`."""
- try:
- path = os.path.realpath(path)
- except UnicodeError:
- pass
- path = os.path.abspath(path)
- path = actual_path(path)
- return path
+ return actual_path(os.path.abspath(os.path.realpath(path)))
def python_reported_file(filename):