Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2cac7e8

Browse files
committed
Minor refactoring
1 parent 31302eb commit 2cac7e8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/utils/xrange.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def __cmp__(self, other):
4545
cmp(self._slice, other._slice))
4646

4747
def __repr__(self):
48-
return '%s(%r, %r, %r)' % (self.__class__.__name__,
48+
return '%s(%r, %r, %r)' % (type(self).__name__,
4949
self.start, self.stop, self.step)
5050

5151
def __len__(self):

0 commit comments

Comments
 (0)