2
0
Эх сурвалжийг харах

Merge pull request #57113 from mhilbrunner/docs-fixes

Rémi Verschelde 3 жил өмнө
parent
commit
49df809ca4
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      doc/tools/make_rst.py

+ 1 - 1
doc/tools/make_rst.py

@@ -373,7 +373,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":