Removing trailing blank lines

This commit is contained in:
Miroslav Stampar
2014-08-20 21:07:19 +02:00
parent e0216771ed
commit 5d10bae31f
7 changed files with 9 additions and 9 deletions

View File

@@ -28,7 +28,7 @@ class xrange(object):
self._slice = slice(*args)
if self._slice.stop is None:
raise TypeError("xrange stop must not be None")
@property
def start(self):
if self._slice.start is not None:
@@ -75,10 +75,10 @@ class xrange(object):
fixed_index = index + self._len()
else:
fixed_index = index
if not 0 <= fixed_index < self._len():
raise IndexError("Index %d out of %r" % (index, self))
return self._index(fixed_index)
else:
raise TypeError("xrange indices must be slices or integers")