diff options
author | Raphaël Barrois <raphael.barrois@polytechnique.org> | 2012-08-17 17:02:48 +0200 |
---|---|---|
committer | Raphaël Barrois <raphael.barrois@polytechnique.org> | 2012-11-15 00:01:23 +0100 |
commit | b093cc6a35c884b926e0c2bc5928b330cccd4e03 (patch) | |
tree | cb58e88dffa693a505b4b3f54d18f0714350a973 /factory/containers.py | |
parent | 9db320ba65d91ff8c09169b359ded4bfff5196db (diff) | |
download | factory-boy-b093cc6a35c884b926e0c2bc5928b330cccd4e03.tar factory-boy-b093cc6a35c884b926e0c2bc5928b330cccd4e03.tar.gz |
[py3] Remove calls to iteritems().
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Diffstat (limited to 'factory/containers.py')
-rw-r--r-- | factory/containers.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/factory/containers.py b/factory/containers.py index d50cb71..46a647f 100644 --- a/factory/containers.py +++ b/factory/containers.py @@ -136,7 +136,7 @@ class DeclarationDict(dict): Returns a dict containing all remaining elements. """ remaining = {} - for k, v in d.iteritems(): + for k, v in d.items(): if self.is_declaration(k, v): self[k] = v else: @@ -262,7 +262,7 @@ class AttributeBuilder(object): # Parse attribute declarations, wrapping SubFactory and # OrderedDeclaration. wrapped_attrs = {} - for k, v in self._attrs.iteritems(): + for k, v in self._attrs.items(): if isinstance(v, declarations.SubFactory): v = SubFactoryWrapper(v, self._subfields.get(k, {}), create) elif isinstance(v, declarations.OrderedDeclaration): |