summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorWalter Dörwald <walter@livinglogic.de>2005-03-14 19:26:47 (GMT)
committerWalter Dörwald <walter@livinglogic.de>2005-03-14 19:26:47 (GMT)
commit2a20d4bd31167d43331921833cb54b93d5423f83 (patch)
tree6a3779fb2d0e0030ed81668a0728b958fc953a91 /Lib
parent96aeafbfbcd1fe6a6f5703d030560a133f7baf1f (diff)
downloadcpython-2a20d4bd31167d43331921833cb54b93d5423f83.zip
cpython-2a20d4bd31167d43331921833cb54b93d5423f83.tar.gz
cpython-2a20d4bd31167d43331921833cb54b93d5423f83.tar.bz2
Backport checkin:
Add default value for "whence" argument.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/codecs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/codecs.py b/Lib/codecs.py
index 092da0c..022b51b 100644
--- a/Lib/codecs.py
+++ b/Lib/codecs.py
@@ -360,7 +360,7 @@ class StreamReader(Codec):
self.charbuffer = u""
self.atcr = False
- def seek(self, offset, whence):
+ def seek(self, offset, whence=0):
""" Set the input stream's current position.
Resets the codec buffers used for keeping state.