From 71fd90da87ae4652ac94e1ff43e79a7d6108df1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Walter=20D=C3=B6rwald?= Date: Mon, 14 Mar 2005 19:25:41 +0000 Subject: Add default value for "whence" argument. --- Lib/codecs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- cgit v0.12