diff options
author | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2012-03-01 16:52:16 +0000 |
---|---|---|
committer | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2012-03-02 17:13:29 +0000 |
commit | ae23aa5f17686977973d7df8b5d4916ca29644a0 (patch) | |
tree | 3f8736448cc10538942bdec68c69a823c65675d7 /morphlib/builder.py | |
parent | 5ca7f1aafcf566f20909720091954f9cff897bfc (diff) | |
download | morph-ae23aa5f17686977973d7df8b5d4916ca29644a0.tar.gz |
Remove unused app parameter and attribute to BlobBuilder
Diffstat (limited to 'morphlib/builder.py')
-rw-r--r-- | morphlib/builder.py | 9 |
1 files changed, 4 insertions, 5 deletions
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))) |