mirror of
https://github.com/django/django.git
synced 2025-08-02 01:53:15 +00:00
Fixed #23812 -- Changed django.utils.six.moves.xrange imports to range
This commit is contained in:
parent
a5499b0916
commit
895dc880eb
27 changed files with 95 additions and 94 deletions
|
@ -18,6 +18,7 @@ from django.core.files.storage import FileSystemStorage
|
|||
from django.db import models
|
||||
from django.utils import six
|
||||
from django.utils.encoding import python_2_unicode_compatible
|
||||
from django.utils.six.moves import range
|
||||
from django.utils._os import upath
|
||||
|
||||
|
||||
|
@ -357,7 +358,7 @@ class Colour(models.Model):
|
|||
name = models.CharField(max_length=50)
|
||||
|
||||
def __iter__(self):
|
||||
for number in xrange(5):
|
||||
for number in range(5):
|
||||
yield number
|
||||
|
||||
def __str__(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue