[Python-checkins] r83288 - python/branches/py3k/PCbuild/build_ssl.py
martin.v.loewis
python-checkins at python.org
Fri Jul 30 19:29:39 CEST 2010
Author: martin.v.loewis
Date: Fri Jul 30 19:29:39 2010
New Revision: 83288
Log:
Drop 2.4 support. Add disabled algorithms to Configure options.
Modified:
python/branches/py3k/PCbuild/build_ssl.py
Modified: python/branches/py3k/PCbuild/build_ssl.py
==============================================================================
--- python/branches/py3k/PCbuild/build_ssl.py (original)
+++ python/branches/py3k/PCbuild/build_ssl.py Fri Jul 30 19:29:39 2010
@@ -23,6 +23,7 @@
# python.exe build_ssl.py Release x64
# python.exe build_ssl.py Release Win32
+from __future__ import with_statement
import os, sys, re, shutil
# Find all "foo.exe" files on the PATH.
@@ -121,13 +122,10 @@
"""
if not os.path.isfile(makefile):
return
- # 2.4 compatibility
fin = open(makefile)
- if 1: # with open(makefile) as fin:
+ with open(makefile) as fin:
lines = fin.readlines()
- fin.close()
- fout = open(makefile, 'w')
- if 1: # with open(makefile, 'w') as fout:
+ with open(makefile, 'w') as fout:
for line in lines:
if line.startswith("PERL="):
continue
@@ -143,11 +141,10 @@
line = line + noalgo
line = line + '\n'
fout.write(line)
- fout.close()
def run_configure(configure, do_script):
- print("perl Configure "+configure)
- os.system("perl Configure "+configure)
+ print("perl Configure "+configure+" no-idea no-mdc2")
+ os.system("perl Configure "+configure+" no-idea no-mdc2")
print(do_script)
os.system(do_script)
More information about the Python-checkins
mailing list