Refs #23919 -- Used yield from.

This commit is contained in:
Vytis Banaitis 2017-02-24 03:06:01 +02:00 committed by Tim Graham
parent 4cffa9a1ff
commit 3dcc351691
19 changed files with 24 additions and 51 deletions

View file

@ -348,8 +348,7 @@ class Colour(models.Model):
name = models.CharField(max_length=50)
def __iter__(self):
for number in range(5):
yield number
yield from range(5)
def __str__(self):
return self.name