Merge pull request #57112 from mhilbrunner/docs-fixes-main
This commit is contained in:
commit
6a3ff8fa1f
1 changed files with 1 additions and 1 deletions
|
@ -438,7 +438,7 @@ def main(): # type: () -> None
|
|||
|
||||
for path in args.path:
|
||||
# Cut off trailing slashes so os.path.basename doesn't choke.
|
||||
if path.endswith(os.sep):
|
||||
if path.endswith("/") or path.endswith("\\"):
|
||||
path = path[:-1]
|
||||
|
||||
if os.path.basename(path) == "modules":
|
||||
|
|
Loading…
Reference in a new issue