From: Walter Dörwald Date: Mon, 14 Mar 2005 19:25:41 +0000 (+0000) Subject: Add default value for "whence" argument. X-Git-Tag: v2.5a0~1922 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=71fd90da87ae4652ac94e1ff43e79a7d6108df1c;p=python Add default value for "whence" argument. --- diff --git a/Lib/codecs.py b/Lib/codecs.py index 092da0c7d7..022b51b23a 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.