]> granicus.if.org Git - python/commitdiff
Removed redundant max() call.
authorAlexandre Vassalotti <alexandre@peadrop.com>
Fri, 9 May 2008 21:21:21 +0000 (21:21 +0000)
committerAlexandre Vassalotti <alexandre@peadrop.com>
Fri, 9 May 2008 21:21:21 +0000 (21:21 +0000)
Change suggested by Nick Coghlan.

Lib/io.py

index d85ed49d150f32af884a45162f2e06031efeabd0..d5c8dfe8ae1e62b72c2e35e2b9710ebb82ff4804 100644 (file)
--- 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: