Bug 1143660 - Fix spacing around operators. r=gps

This commit is contained in:
Dirkjan Ochtman
2015-03-18 19:13:27 +01:00
parent f2fb39ca4b
commit 6d6f0ae7a1
3 changed files with 4 additions and 4 deletions

View File

@@ -100,7 +100,7 @@ class Bootstrapper(object):
sys.platform.startswith('freebsd'):
cls = FreeBSDBootstrapper
args['version'] = platform.release()
args['flavor'] = platform.system()
args['flavor'] = platform.system()
if cls is None:
raise NotImplementedError('Bootstrap support is not yet available '
@@ -110,7 +110,7 @@ class Bootstrapper(object):
def bootstrap(self):
# Like ['1. Firefox for Desktop', '2. Firefox for Android'].
labels = [ '%s. %s' % (i + 1, name) for (i, (name, _)) in enumerate(APPLICATIONS) ]
labels = ['%s. %s' % (i + 1, name) for (i, (name, _)) in enumerate(APPLICATIONS)]
prompt = APPLICATION_CHOICE % '\n'.join(labels)
choice = self.instance.prompt_int(prompt=prompt, low=1, high=len(APPLICATIONS))
name, application = APPLICATIONS[choice-1]

View File

@@ -9,7 +9,7 @@ class FreeBSDBootstrapper(BaseBootstrapper):
def __init__(self, version, flavor):
BaseBootstrapper.__init__(self)
self.version = int(version.split('.')[0])
self.flavor = flavor.lower()
self.flavor = flavor.lower()
self.packages = [
'autoconf213',

View File

@@ -26,7 +26,7 @@ HOMEBREW_AUTOCONF213 = 'https://raw.github.com/Homebrew/homebrew-versions/master
MACPORTS_URL = {'9': 'https://distfiles.macports.org/MacPorts/MacPorts-2.2.1-10.9-Mavericks.pkg',
'8': 'https://distfiles.macports.org/MacPorts/MacPorts-2.1.3-10.8-MountainLion.pkg',
'7': 'https://distfiles.macports.org/MacPorts/MacPorts-2.1.3-10.7-Lion.pkg',
'6': 'https://distfiles.macports.org/MacPorts/MacPorts-2.1.3-10.6-SnowLeopard.pkg',}
'6': 'https://distfiles.macports.org/MacPorts/MacPorts-2.1.3-10.6-SnowLeopard.pkg', }
MACPORTS_CLANG_PACKAGE = 'clang-3.3'