From f0c0ff6ce4c99f475f360d8c90350b6cb2713d84 Mon Sep 17 00:00:00 2001 From: Alexandre Vassalotti Date: Fri, 9 May 2008 21:21:21 +0000 Subject: [PATCH] Removed redundant max() call. Change suggested by Nick Coghlan. --- Lib/io.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/io.py b/Lib/io.py index d85ed49d15..d5c8dfe8ae 100644 --- a/Lib/io.py +++ b/Lib/io.py @@ -833,7 +833,7 @@ class _BytesIO(BufferedIOBase): if whence == 0: if pos < 0: raise ValueError("negative seek position %r" % (pos,)) - self._pos = max(0, pos) + self._pos = pos elif whence == 1: self._pos = max(0, self._pos + pos) elif whence == 2: -- 2.40.0