[Python-3000-checkins] r62956 - python/branches/py3k/Lib/io.py
alexandre.vassalotti
python-3000-checkins at python.org
Fri May 9 23:21:21 CEST 2008
Author: alexandre.vassalotti
Date: Fri May 9 23:21:21 2008
New Revision: 62956
Log:
Removed redundant max() call.
Change suggested by Nick Coghlan.
Modified:
python/branches/py3k/Lib/io.py
Modified: python/branches/py3k/Lib/io.py
==============================================================================
--- python/branches/py3k/Lib/io.py (original)
+++ python/branches/py3k/Lib/io.py Fri May 9 23:21:21 2008
@@ -833,7 +833,7 @@
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:
More information about the Python-3000-checkins
mailing list