eric7/DebugClients/Python/coverage/files.py

branch
eric7
changeset 8991
2fc945191992
parent 8929
fcca2fa618bf
--- a/eric7/DebugClients/Python/coverage/files.py	Sun Mar 20 17:26:35 2022 +0100
+++ b/eric7/DebugClients/Python/coverage/files.py	Sun Mar 20 17:49:44 2022 +0100
@@ -145,13 +145,7 @@
 @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):

eric ide

mercurial