mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-26 09:35:43 +01:00
Finish the documentation of normalize_path
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
parent
3c23c82dac
commit
b6484875cc
@ -46,8 +46,10 @@ class FileIssueTracker:
|
|||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def normalize_path(filepath):
|
def normalize_path(filepath):
|
||||||
"""Normalize ``filepath`` """
|
"""Normalize ``filepath`` with / as the directory separator."""
|
||||||
filepath = os.path.normpath(filepath)
|
filepath = os.path.normpath(filepath)
|
||||||
|
# On Windows, we may have backslashes to separate directories.
|
||||||
|
# We need slashes to match exemption lists.
|
||||||
seps = os.path.sep
|
seps = os.path.sep
|
||||||
if os.path.altsep is not None:
|
if os.path.altsep is not None:
|
||||||
seps += os.path.altsep
|
seps += os.path.altsep
|
||||||
|
Loading…
Reference in New Issue
Block a user