re.sub expands escape sequences in it's second argument.

Will backport to 2.3 myself.
This commit is contained in:
Thomas Heller 2003-09-27 19:35:37 +00:00
parent b7c95290de
commit 6122c12031

View file

@ -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