summaryrefslogtreecommitdiffstats
path: root/Doc/library/itertools.rst
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/library/itertools.rst')
-rw-r--r--Doc/library/itertools.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/itertools.rst b/Doc/library/itertools.rst
index 7c7442b..54b52e4 100644
--- a/Doc/library/itertools.rst
+++ b/Doc/library/itertools.rst
@@ -235,7 +235,7 @@ loops that truncate the stream.
def islice(iterable, *args):
s = slice(*args)
- it = iter(range(s.start or 0, s.stop or sys.maxint, s.step or 1))
+ it = iter(range(s.start or 0, s.stop or sys.maxsize, s.step or 1))
nexti = next(it)
for i, element in enumerate(iterable):
if i == nexti: