diff options
author | Raphaël Barrois <raphael.barrois@polytechnique.org> | 2013-04-03 01:17:26 +0200 |
---|---|---|
committer | Raphaël Barrois <raphael.barrois@polytechnique.org> | 2013-04-03 01:19:45 +0200 |
commit | 8c1784e8c1eac65f66b4a1ecc4b8b0ddd5de9327 (patch) | |
tree | 0b1d368f114de4235dc3d88e2dfc41b3403d16ef /factory/containers.py | |
parent | 3aee208ee7cdf480cbc173cf3084ce2217a5944f (diff) | |
download | factory-boy-8c1784e8c1eac65f66b4a1ecc4b8b0ddd5de9327.tar factory-boy-8c1784e8c1eac65f66b4a1ecc4b8b0ddd5de9327.tar.gz |
Pylint.
Diffstat (limited to 'factory/containers.py')
-rw-r--r-- | factory/containers.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/factory/containers.py b/factory/containers.py index dc3a457..e02f9f9 100644 --- a/factory/containers.py +++ b/factory/containers.py @@ -228,9 +228,12 @@ class AttributeBuilder(object): self._containers = extra.pop('__containers', ()) self._attrs = factory.declarations(extra) - attrs_with_subfields = [k for k, v in self._attrs.items() if self.has_subfields(v)] + attrs_with_subfields = [ + k for k, v in self._attrs.items() + if self.has_subfields(v)] - self._subfields = utils.multi_extract_dict(attrs_with_subfields, self._attrs) + self._subfields = utils.multi_extract_dict( + attrs_with_subfields, self._attrs) def has_subfields(self, value): return isinstance(value, declarations.SubFactory) |