Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31302eb commit 2cac7e8Copy full SHA for 2cac7e8
1 file changed
lib/utils/xrange.py
@@ -45,7 +45,7 @@ def __cmp__(self, other):
45
cmp(self._slice, other._slice))
46
47
def __repr__(self):
48
- return '%s(%r, %r, %r)' % (self.__class__.__name__,
+ return '%s(%r, %r, %r)' % (type(self).__name__,
49
self.start, self.stop, self.step)
50
51
def __len__(self):
0 commit comments