From 5465727e538bcd77200f8b3c75f002367597fc51 Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Mon, 23 Apr 2012 13:39:48 -0700 Subject: [PATCH] Fix syntax errors in subcmds/init.py Fixes three errors: Python doesn't like the line wrap after 'and'. platform.system is a function, needs to be platform.system(). Typo all_platfroms instead of all_platforms. Change-Id: Ia875e521bc01ae2eb321ec62d839173c00f86c2d --- subcmds/init.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/subcmds/init.py b/subcmds/init.py index 2e3215b2..b359024d 100644 --- a/subcmds/init.py +++ b/subcmds/init.py @@ -154,7 +154,7 @@ to update the working directory files. not m.config.GetString('repo.mirror') == 'true'): groups.append(platformize(platform.system().lower())) elif opt.platform == 'all': - groups.extend(map(platformize, all_platfroms)) + groups.extend(map(platformize, all_platforms)) elif opt.platform in all_platforms: groups.extend(platformize(opt.platform)) elif opt.platform != 'none': @@ -163,8 +163,7 @@ to update the working directory files. groups = [x for x in groups if x] groupstr = ','.join(groups) - if opt.platform == 'auto' and - groupstr == 'default,platform-' + platform.system.lower(): + if opt.platform == 'auto' and groupstr == 'default,platform-' + platform.system().lower(): groupstr = None m.config.SetString('manifest.groups', groupstr)