diff --git a/coverage/files.py b/coverage/files.py index 5c2ff1ace..b489de2e5 100644 --- a/coverage/files.py +++ b/coverage/files.py @@ -5,6 +5,7 @@ import hashlib import fnmatch +import functools import ntpath import os import os.path @@ -158,6 +159,7 @@ def unicode_filename(filename): return filename +@functools.lru_cache(None) @contract(returns='unicode') def abs_file(path): """Return the absolute normalized form of `path`."""