diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2023-01-01 11:07:32 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-01 11:07:32 -0500 |
commit | 447d061bc7b978afedd3b0148715d2153ac726c5 (patch) | |
tree | 428d5a7728ab02bd84ffe8ddccce5f01b0265e8e /Lib/importlib/resources/_legacy.py | |
parent | ba1342ce998c6c0c36078411d169f29179fbc9f6 (diff) | |
download | cpython-447d061bc7b978afedd3b0148715d2153ac726c5.tar.gz cpython-447d061bc7b978afedd3b0148715d2153ac726c5.zip |
gh-97930: Apply changes from importlib_resources 5.10. (GH-100598)
Diffstat (limited to 'Lib/importlib/resources/_legacy.py')
-rw-r--r-- | Lib/importlib/resources/_legacy.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/importlib/resources/_legacy.py b/Lib/importlib/resources/_legacy.py index 1d5d3f1fbb1..b1ea8105dad 100644 --- a/Lib/importlib/resources/_legacy.py +++ b/Lib/importlib/resources/_legacy.py @@ -27,8 +27,7 @@ def deprecated(func): return wrapper -def normalize_path(path): - # type: (Any) -> str +def normalize_path(path: Any) -> str: """Normalize a path by ensuring it is a string. If the resulting string contains path separators, an exception is raised. |