summaryrefslogtreecommitdiffstats
path: root/Doc/tools/mkhowto
diff options
context:
space:
mode:
authorThomas Heller <theller@ctypes.org>2003-09-27 19:35:37 (GMT)
committerThomas Heller <theller@ctypes.org>2003-09-27 19:35:37 (GMT)
commit6122c12031d89caa0d1a04ee485132d46496d5be (patch)
treece1d88e6e3145d604bd6f86e90c199470bb8191c /Doc/tools/mkhowto
parentb7c95290de9d3df8db7cf85d1c6584926bdb7e64 (diff)
downloadcpython-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/mkhowto')
-rwxr-xr-xDoc/tools/mkhowto2
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