summaryrefslogtreecommitdiff
path: root/factory
diff options
context:
space:
mode:
Diffstat (limited to 'factory')
-rw-r--r--factory/containers.py2
-rw-r--r--factory/declarations.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/factory/containers.py b/factory/containers.py
index 46a647f..4ceb07f 100644
--- a/factory/containers.py
+++ b/factory/containers.py
@@ -62,7 +62,7 @@ class LazyStub(object):
def __str__(self):
return '<LazyStub for %s with %s>' % (
- self.__target_class.__name__, self.__attrs.keys())
+ self.__target_class.__name__, list(self.__attrs.keys()))
def __fill__(self):
"""Fill this LazyStub, computing values of all defined attributes.
diff --git a/factory/declarations.py b/factory/declarations.py
index 77000f2..50a826f 100644
--- a/factory/declarations.py
+++ b/factory/declarations.py
@@ -129,7 +129,7 @@ class Iterator(OrderedDeclaration):
self.iterator = iter(iterator)
def evaluate(self, sequence, obj, containers=()):
- return self.iterator.next()
+ return next(self.iterator)
class InfiniteIterator(Iterator):