Skip to content

Commit 59a20d8

Browse files
committed
pep8
1 parent 2709541 commit 59a20d8

File tree

1 file changed

+17
-13
lines changed

1 file changed

+17
-13
lines changed

bootstrap.py

+17-13
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,11 @@
2020
$Id$
2121
"""
2222

23-
import os, shutil, sys, tempfile, urllib2
23+
import os
24+
import shutil
25+
import sys
26+
import tempfile
27+
import urllib2
2428
from optparse import OptionParser
2529

2630
tmpeggs = tempfile.mkdtemp()
@@ -33,16 +37,16 @@
3337
'intended to meet a temporary need if you encounter problems with '
3438
'the zc.buildout 1.5 release.')
3539
parser.add_option("-v", "--version", dest="version", default='1.4.4',
36-
help='Use a specific zc.buildout version. *This '
37-
'bootstrap script defaults to '
38-
'1.4.4, unlike usual buildpout bootstrap scripts.*')
40+
help='Use a specific zc.buildout version. *This '
41+
'bootstrap script defaults to '
42+
'1.4.4, unlike usual buildpout bootstrap scripts.*')
3943
parser.add_option("-d", "--distribute",
40-
action="store_true", dest="distribute", default=False,
41-
help="Use Disribute rather than Setuptools.")
44+
action="store_true", dest="distribute", default=False,
45+
help="Use Disribute rather than Setuptools.")
4246

4347
parser.add_option("-c", None, action="store", dest="config_file",
44-
help=("Specify the path to the buildout configuration "
45-
"file to be used."))
48+
help=("Specify the path to the buildout configuration "
49+
"file to be used."))
4650

4751
options, args = parser.parse_args()
4852

@@ -68,7 +72,7 @@
6872
ez = {}
6973
if USE_DISTRIBUTE:
7074
exec urllib2.urlopen('http://python-distribute.org/distribute_setup.py'
71-
).read() in ez
75+
).read() in ez
7276
ez['use_setuptools'](to_dir=tmpeggs, download_delay=0, no_fake=True)
7377
else:
7478
exec urllib2.urlopen('http://peak.telecommunity.com/dist/ez_setup.py'
@@ -83,14 +87,14 @@
8387
if sys.platform == 'win32':
8488
def quote(c):
8589
if ' ' in c:
86-
return '"%s"' % c # work around spawn lamosity on windows
90+
return '"%s"' % c # work around spawn lamosity on windows
8791
else:
8892
return c
8993
else:
90-
def quote (c):
94+
def quote(c):
9195
return c
9296

93-
ws = pkg_resources.working_set
97+
ws = pkg_resources.working_set
9498

9599
if USE_DISTRIBUTE:
96100
requirement = 'distribute'
@@ -116,7 +120,7 @@ def quote (c):
116120
if is_jython:
117121
import subprocess
118122
exitcode = subprocess.Popen(cmd, env=env).wait()
119-
else: # Windows prefers this, apparently; otherwise we would prefer subprocess
123+
else: # Windows prefers this, apparently; otherwise we would prefer subprocess
120124
exitcode = os.spawnle(*([os.P_WAIT, sys.executable] + cmd + [env]))
121125
assert exitcode == 0
122126

0 commit comments

Comments
 (0)