summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorAlexandre Vassalotti <alexandre@peadrop.com>2008-05-09 21:21:21 (GMT)
committerAlexandre Vassalotti <alexandre@peadrop.com>2008-05-09 21:21:21 (GMT)
commitf0c0ff6ce4c99f475f360d8c90350b6cb2713d84 (patch)
tree9c22cc299fc179f1e17f3530f1013c7fa62053b9 /Lib
parent4e6531e7dee5ff9b27c108e8614d336657e68a21 (diff)
downloadcpython-f0c0ff6ce4c99f475f360d8c90350b6cb2713d84.zip
cpython-f0c0ff6ce4c99f475f360d8c90350b6cb2713d84.tar.gz
cpython-f0c0ff6ce4c99f475f360d8c90350b6cb2713d84.tar.bz2
Removed redundant max() call.
Change suggested by Nick Coghlan.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/io.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/io.py b/Lib/io.py
index d85ed49..d5c8dfe 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: