diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2021-05-02 07:10:06 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2021-05-02 07:38:20 -0400 |
commit | a6f634a773545b4934e4bab3910f6a6da3bc58d1 (patch) | |
tree | 1d4e922d9663beafecb8658dde3d1cc13b3cf45d /coverage/files.py | |
parent | 6a3d3aaaf2aebb816c7287263c8097844280b233 (diff) | |
download | python-coveragepy-git-a6f634a773545b4934e4bab3910f6a6da3bc58d1.tar.gz |
refactor: remove a now no-op function
Diffstat (limited to 'coverage/files.py')
-rw-r--r-- | coverage/files.py | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/coverage/files.py b/coverage/files.py index f1832207..8de2ec67 100644 --- a/coverage/files.py +++ b/coverage/files.py @@ -48,7 +48,7 @@ def relative_filename(filename): fnorm = os.path.normcase(filename) if fnorm.startswith(RELATIVE_DIR): filename = filename[len(RELATIVE_DIR):] - return unicode_filename(filename) + return filename @contract(returns='unicode') @@ -141,12 +141,6 @@ else: return filename -@contract(filename='unicode', returns='unicode') -def unicode_filename(filename): - """Return a Unicode version of `filename`.""" - return filename - - @contract(returns='unicode') def abs_file(path): """Return the absolute normalized form of `path`.""" @@ -156,7 +150,6 @@ def abs_file(path): pass path = os.path.abspath(path) path = actual_path(path) - path = unicode_filename(path) return path |