diff options
author | R David Murray <rdmurray@bitdance.com> | 2016-09-08 17:59:53 (GMT) |
---|---|---|
committer | R David Murray <rdmurray@bitdance.com> | 2016-09-08 17:59:53 (GMT) |
commit | 44b548dda872c0d4f30afd6b44fd74b053a55ad8 (patch) | |
tree | b3c1ff8485bc279000f9db95491ebc69a4385876 /Tools/freeze | |
parent | 513d7478a136e7646075592da2593476299cc8be (diff) | |
download | cpython-44b548dda872c0d4f30afd6b44fd74b053a55ad8.zip cpython-44b548dda872c0d4f30afd6b44fd74b053a55ad8.tar.gz cpython-44b548dda872c0d4f30afd6b44fd74b053a55ad8.tar.bz2 |
#27364: fix "incorrect" uses of escape character in the stdlib.
And most of the tools.
Patch by Emanual Barry, reviewed by me, Serhiy Storchaka, and
Martin Panter.
Diffstat (limited to 'Tools/freeze')
-rw-r--r-- | Tools/freeze/winmakemakefile.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Tools/freeze/winmakemakefile.py b/Tools/freeze/winmakemakefile.py index 3843388..439a1d7 100644 --- a/Tools/freeze/winmakemakefile.py +++ b/Tools/freeze/winmakemakefile.py @@ -95,7 +95,7 @@ def realwork(vars, moddefns, target): print() print('$(temp_dir):') - print(' if not exist $(temp_dir)\. mkdir $(temp_dir)') + print(r' if not exist $(temp_dir)\. mkdir $(temp_dir)') print() objects = [] @@ -106,7 +106,7 @@ def realwork(vars, moddefns, target): base = os.path.basename(file) base, ext = os.path.splitext(base) objects.append(base + ".obj") - print('$(temp_dir)\%s.obj: "%s"' % (base, file)) + print(r'$(temp_dir)\%s.obj: "%s"' % (base, file)) print("\t@$(CC) -c -nologo /Fo$* $(cdl) $(c_debug) /D BUILD_FREEZE", end=' ') print('"-I$(pythonhome)/Include" "-I$(pythonhome)/PC" \\') print("\t\t$(cflags) $(cdebug) $(cinclude) \\") @@ -126,7 +126,7 @@ def realwork(vars, moddefns, target): print() ; print() print("OBJS=", end=' ') - for obj in objects: print('"$(temp_dir)\%s"' % (obj), end=' ') + for obj in objects: print(r'"$(temp_dir)\%s"' % (obj), end=' ') print() ; print() print("LIBS=", end=' ') |