mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +00:00
re.sub expands escape sequences in it's second argument.
Will backport to 2.3 myself.
This commit is contained in:
parent
b7c95290de
commit
6122c12031
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue