summaryrefslogtreecommitdiffstats
path: root/Lib/codecs.py
diff options
context:
space:
mode:
authorWalter Dörwald <walter@livinglogic.de>2005-03-14 19:25:41 (GMT)
committerWalter Dörwald <walter@livinglogic.de>2005-03-14 19:25:41 (GMT)
commit71fd90da87ae4652ac94e1ff43e79a7d6108df1c (patch)
treead3fb53e088aab90664c4bcef1c7181df97a1743 /Lib/codecs.py
parent729c31f5c3e8dcbff571e066ab253db272e490a5 (diff)
downloadcpython-71fd90da87ae4652ac94e1ff43e79a7d6108df1c.zip
cpython-71fd90da87ae4652ac94e1ff43e79a7d6108df1c.tar.gz
cpython-71fd90da87ae4652ac94e1ff43e79a7d6108df1c.tar.bz2
Add default value for "whence" argument.
Diffstat (limited to 'Lib/codecs.py')
-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.