From: Walter Dörwald Date: Mon, 14 Mar 2005 19:26:47 +0000 (+0000) Subject: Backport checkin: X-Git-Tag: v2.4.1c2~8 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2a20d4bd31167d43331921833cb54b93d5423f83;p=thirdparty%2FPython%2Fcpython.git Backport checkin: Add default value for "whence" argument. --- diff --git a/Lib/codecs.py b/Lib/codecs.py index 092da0c7d759..022b51b23a4d 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.