From ae23aa5f17686977973d7df8b5d4916ca29644a0 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Thu, 1 Mar 2012 16:52:16 +0000 Subject: Remove unused app parameter and attribute to BlobBuilder --- morphlib/builder.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'morphlib/builder.py') diff --git a/morphlib/builder.py b/morphlib/builder.py index 8d34582b..0223807e 100644 --- a/morphlib/builder.py +++ b/morphlib/builder.py @@ -144,8 +144,7 @@ class Factory(object): class BlobBuilder(object): # pragma: no cover - def __init__(self, app, blob): - self.app = app + def __init__(self, blob): self.blob = blob # The following MUST get set by the caller. @@ -731,11 +730,11 @@ class Builder(object): # pragma: no cover def create_blob_builder(self, blob): if isinstance(blob, morphlib.blobs.Stratum): - builder = StratumBuilder(self.app, blob) + builder = StratumBuilder(blob) elif isinstance(blob, morphlib.blobs.Chunk): - builder = ChunkBuilder(self.app, blob) + builder = ChunkBuilder(blob) elif isinstance(blob, morphlib.blobs.System): - builder = SystemBuilder(self.app, blob) + builder = SystemBuilder(blob) else: raise TypeError('Blob %s has unknown type %s' % (str(blob), type(blob))) -- cgit v1.2.1