]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
re.sub expands escape sequences in it's second argument.
authorThomas Heller <theller@ctypes.org>
Sat, 27 Sep 2003 19:38:25 +0000 (19:38 +0000)
committerThomas Heller <theller@ctypes.org>
Sat, 27 Sep 2003 19:38:25 +0000 (19:38 +0000)
Doc/tools/mkhowto

index ed38e50fc30a014349b0a578bba5e2efff8d5a8f..cee6ca524bb41659752373f15100013e74ea526e 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