Commit 4ae8e7e4 authored by Alexandre Vassalotti's avatar Alexandre Vassalotti

Removed redundant max() call.

Change suggested by Nick Coghlan.
parent 9b23f26a
...@@ -833,7 +833,7 @@ class _BytesIO(BufferedIOBase): ...@@ -833,7 +833,7 @@ class _BytesIO(BufferedIOBase):
if whence == 0: if whence == 0:
if pos < 0: if pos < 0:
raise ValueError("negative seek position %r" % (pos,)) raise ValueError("negative seek position %r" % (pos,))
self._pos = max(0, pos) self._pos = pos
elif whence == 1: elif whence == 1:
self._pos = max(0, self._pos + pos) self._pos = max(0, self._pos + pos)
elif whence == 2: elif whence == 2:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment