summaryrefslogtreecommitdiffstats
path: root/PCbuild
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2008-01-02 18:28:32 (GMT)
committerChristian Heimes <christian@cheimes.de>2008-01-02 18:28:32 (GMT)
commitfed3ebc0001136bd63e951282233eda5b56acb33 (patch)
treeb730231f690e79e80b25427d30df1f6a2693141c /PCbuild
parentd9fbab2621d1a6f35be106873d02408174c59b11 (diff)
downloadcpython-fed3ebc0001136bd63e951282233eda5b56acb33.zip
cpython-fed3ebc0001136bd63e951282233eda5b56acb33.tar.gz
cpython-fed3ebc0001136bd63e951282233eda5b56acb33.tar.bz2
Made vs9to8 Unix compatible
Diffstat (limited to 'PCbuild')
-rw-r--r--PCbuild/vs9to8.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/PCbuild/vs9to8.py b/PCbuild/vs9to8.py
index 0669cfb..b31ed61 100644
--- a/PCbuild/vs9to8.py
+++ b/PCbuild/vs9to8.py
@@ -11,7 +11,7 @@ def vs9to8(src, dest):
destname = os.path.normpath(os.path.join(dest, name))
print("%s -> %s" % (filename, destname))
- with open(filename, 'r') as fin:
+ with open(filename, 'rU') as fin:
lines = fin.read()
lines = lines.replace('Version="9,00"', 'Version="8.00"')
lines = lines.replace('Version="9.00"', 'Version="8.00"')
@@ -22,8 +22,9 @@ def vs9to8(src, dest):
lines = lines.replace('..\\', '..\\..\\')
lines = lines.replace('..\\..\\..\\..\\', '..\\..\\..\\')
- with open(destname, 'w') as fout:
+ with open(destname, 'wb') as fout:
+ lines = lines.replace("\n", "\r\n")
fout.write(lines)
if __name__ == "__main__":
- vs9to8(src=".", dest="..\PC\VS8.0")
+ vs9to8(src=".", dest="../PC/VS8.0")