Explorar o código

Merge pull request #57112 from mhilbrunner/docs-fixes-main

Rémi Verschelde %!s(int64=3) %!d(string=hai) anos
pai
achega
6a3ff8fa1f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      doc/tools/make_rst.py

+ 1 - 1
doc/tools/make_rst.py

@@ -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":