]> granicus.if.org Git - python/commitdiff
re.sub expands escape sequences in it's second argument.
authorThomas Heller <theller@ctypes.org>
Sat, 27 Sep 2003 19:35:37 +0000 (19:35 +0000)
committerThomas Heller <theller@ctypes.org>
Sat, 27 Sep 2003 19:35:37 +0000 (19:35 +0000)
Will backport to 2.3 myself.

Doc/tools/mkhowto

index 65640568f7db4b7dae14b1049ae7e38a25ee66b8..e20480248af8a3b0cce60f42531b8fe4627b20aa 100755 (executable)
@@ -208,7 +208,7 @@ class Options:
                 self.global_module_index = arg
             elif opt == "--dir":
                 if os.sep == "\\":
-                    arg = re.sub("/", "\\", arg)
+                    arg = re.sub("/", "\\\\", arg)
                 self.builddir = os.path.expanduser(arg)
             elif opt == "--paper":
                 self.paper = arg