diff options
author | Raphaël Barrois <raphael.barrois@polytechnique.org> | 2012-08-17 17:08:33 +0200 |
---|---|---|
committer | Raphaël Barrois <raphael.barrois@polytechnique.org> | 2012-11-15 00:01:24 +0100 |
commit | b152ba79ab355c231b6e5fd852bad546e06208d9 (patch) | |
tree | 8ce318144cf3455acb60be2d93ffabd3d368fa21 /factory | |
parent | d4fcbd31f192420898923ed9d8e956acaed8396e (diff) | |
download | factory-boy-b152ba79ab355c231b6e5fd852bad546e06208d9.tar factory-boy-b152ba79ab355c231b6e5fd852bad546e06208d9.tar.gz |
[py3] Rename xrange to range
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Diffstat (limited to 'factory')
-rw-r--r-- | factory/base.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/factory/base.py b/factory/base.py index 240170c..a5056fd 100644 --- a/factory/base.py +++ b/factory/base.py @@ -369,7 +369,7 @@ class BaseFactory(object): Returns: object list: the built instances """ - return [cls.build(**kwargs) for _ in xrange(size)] + return [cls.build(**kwargs) for _ in range(size)] @classmethod def create(cls, **kwargs): @@ -386,7 +386,7 @@ class BaseFactory(object): Returns: object list: the created instances """ - return [cls.create(**kwargs) for _ in xrange(size)] + return [cls.create(**kwargs) for _ in range(size)] @classmethod def stub(cls, **kwargs): @@ -410,7 +410,7 @@ class BaseFactory(object): Returns: object list: the stubbed instances """ - return [cls.stub(**kwargs) for _ in xrange(size)] + return [cls.stub(**kwargs) for _ in range(size)] @classmethod def generate(cls, strategy, **kwargs): |