diff options
-rw-r--r-- | coverage/execfile.py | 2 | ||||
-rw-r--r-- | coverage/files.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/coverage/execfile.py b/coverage/execfile.py index 2ee2f725..01ddd0cd 100644 --- a/coverage/execfile.py +++ b/coverage/execfile.py @@ -293,7 +293,7 @@ def make_code_from_pyc(filename): # match or we won't run the file. magic = fpyc.read(4) if magic != PYC_MAGIC_NUMBER: - raise NoCode(f"Bad magic number in .pyc file: {magic} != {PYC_MAGIC_NUMBER}") + raise NoCode(f"Bad magic number in .pyc file: {magic!r} != {PYC_MAGIC_NUMBER!r}") date_based = True if env.PYBEHAVIOR.hashed_pyc_pep552: diff --git a/coverage/files.py b/coverage/files.py index afb0dbf5..3cf87faa 100644 --- a/coverage/files.py +++ b/coverage/files.py @@ -137,9 +137,9 @@ if env.WINDOWS: return actpath else: - def actual_path(filename): + def actual_path(path): """The actual path for non-Windows platforms.""" - return filename + return path @contract(returns='unicode') |