Minor refactoring

This commit is contained in:
Miroslav Stampar 2013-01-14 16:27:50 +01:00
parent 31302eb707
commit 2cac7e860e

View File

@ -45,7 +45,7 @@ class xrange(object):
cmp(self._slice, other._slice))
def __repr__(self):
return '%s(%r, %r, %r)' % (self.__class__.__name__,
return '%s(%r, %r, %r)' % (type(self).__name__,
self.start, self.stop, self.step)
def __len__(self):