Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6122c12

Browse files
author
Thomas Heller
committed
re.sub expands escape sequences in it's second argument.
Will backport to 2.3 myself.
1 parent b7c9529 commit 6122c12

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Doc/tools/mkhowto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ class Options:
208208
self.global_module_index = arg
209209
elif opt == "--dir":
210210
if os.sep == "\\":
211-
arg = re.sub("/", "\\", arg)
211+
arg = re.sub("/", "\\\\", arg)
212212
self.builddir = os.path.expanduser(arg)
213213
elif opt == "--paper":
214214
self.paper = arg

0 commit comments

Comments
 (0)