mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
[py3] Added Python 3 compatibility for xrange.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
from django.dispatch.saferef import safeRef
|
||||
from django.utils.six.moves import xrange
|
||||
from django.utils import unittest
|
||||
|
||||
|
||||
class Test1(object):
|
||||
def x(self):
|
||||
pass
|
||||
@@ -70,4 +70,4 @@ class SaferefTests(unittest.TestCase):
|
||||
|
||||
def _closure(self, ref):
|
||||
"""Dumb utility mechanism to increment deletion counter"""
|
||||
self.closureCount +=1
|
||||
self.closureCount +=1
|
||||
|
||||
Reference in New Issue
Block a user