diff options
author | Thomas Heller <theller@ctypes.org> | 2003-09-27 19:35:37 (GMT) |
---|---|---|
committer | Thomas Heller <theller@ctypes.org> | 2003-09-27 19:35:37 (GMT) |
commit | 6122c12031d89caa0d1a04ee485132d46496d5be (patch) | |
tree | ce1d88e6e3145d604bd6f86e90c199470bb8191c /Doc/tools | |
parent | b7c95290de9d3df8db7cf85d1c6584926bdb7e64 (diff) | |
download | cpython-6122c12031d89caa0d1a04ee485132d46496d5be.zip cpython-6122c12031d89caa0d1a04ee485132d46496d5be.tar.gz cpython-6122c12031d89caa0d1a04ee485132d46496d5be.tar.bz2 |
re.sub expands escape sequences in it's second argument.
Will backport to 2.3 myself.
Diffstat (limited to 'Doc/tools')
-rwxr-xr-x | Doc/tools/mkhowto | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/tools/mkhowto b/Doc/tools/mkhowto index 6564056..e204802 100755 --- a/Doc/tools/mkhowto +++ b/Doc/tools/mkhowto @@ -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 |