From 058d4d86274ea495203c8013168909cce458ab1a Mon Sep 17 00:00:00 2001 From: Dhananjay Balan Date: Mon, 5 May 2014 00:00:48 +0530 Subject: [PATCH] Be pythonic. Use sets.update method to add pacakge names. --- bootstrapvz/common/tasks/bootstrap.py | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/bootstrapvz/common/tasks/bootstrap.py b/bootstrapvz/common/tasks/bootstrap.py index cc7de40..5e99248 100644 --- a/bootstrapvz/common/tasks/bootstrap.py +++ b/bootstrapvz/common/tasks/bootstrap.py @@ -83,10 +83,9 @@ class IncludePackagesInBootstrap(Task): @classmethod def run(cls, info): - info.include_packages = \ - info.include_packages.union( - set(info.manifest.bootstrapper['include_packages']) - ) + info.include_packages.update( + set(info.manifest.bootstrapper['include_packages']) + ) class ExcludePackagesInBootstrap(Task): @@ -96,7 +95,6 @@ class ExcludePackagesInBootstrap(Task): @classmethod def run(cls, info): - info.exclude_packages = \ - info.exclude_packages.union( - set(info.manifest.bootstrapper['exclude_packages']) - ) + info.exclude_packages.update( + set(info.manifest.bootstrapper['exclude_packages']) + )