summaryrefslogtreecommitdiffstats
path: root/Mac
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2005-01-07 16:01:32 (GMT)
committerTim Peters <tim.peters@gmail.com>2005-01-07 16:01:32 (GMT)
commit5a9fb3c415d1204c7f2c12243ba5d46f5964dcbd (patch)
treec522f4e92f25037fe08318a3159743d1a21fb7ec /Mac
parente4f5600e5ca35feef87281090929cac7d8226388 (diff)
downloadcpython-5a9fb3c415d1204c7f2c12243ba5d46f5964dcbd.zip
cpython-5a9fb3c415d1204c7f2c12243ba5d46f5964dcbd.tar.gz
cpython-5a9fb3c415d1204c7f2c12243ba5d46f5964dcbd.tar.bz2
Whitespace normalization.
Diffstat (limited to 'Mac')
-rw-r--r--Mac/OSX/fixapplepython23.py13
1 files changed, 6 insertions, 7 deletions
diff --git a/Mac/OSX/fixapplepython23.py b/Mac/OSX/fixapplepython23.py
index ce54890..181181e 100644
--- a/Mac/OSX/fixapplepython23.py
+++ b/Mac/OSX/fixapplepython23.py
@@ -43,12 +43,12 @@ def findline(lines, start):
if lines[i][:len(start)] == start:
return i
return -1
-
+
def fix(makefile, do_apply):
"""Fix the Makefile, if required."""
fixed = False
lines = open(makefile).readlines()
-
+
for old, new in CHANGES:
i = findline(lines, new)
if i >= 0:
@@ -61,7 +61,7 @@ def fix(makefile, do_apply):
return 2
lines[i] = new
fixed = True
-
+
if fixed:
if do_apply:
print 'fixapplepython23: Fix to Apple-installed Python 2.3 applied'
@@ -74,7 +74,7 @@ def fix(makefile, do_apply):
else:
print 'fixapplepython23: No fix needed, appears to have been applied before'
return 0
-
+
def makescript(filename, compiler):
"""Create a wrapper script for a compiler"""
dirname = os.path.split(filename)[0]
@@ -85,7 +85,7 @@ def makescript(filename, compiler):
fp.close()
os.chmod(filename, 0755)
print 'fixapplepython23: Created', filename
-
+
def main():
# Check for -n option
if len(sys.argv) > 1 and sys.argv[1] == '-n':
@@ -113,7 +113,6 @@ def main():
# Finally fix the makefile
rv = fix(MAKEFILE, do_apply)
sys.exit(rv)
-
+
if __name__ == '__main__':
main()
-