]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Backport checkin:
authorWalter Dörwald <walter@livinglogic.de>
Mon, 14 Mar 2005 19:26:47 +0000 (19:26 +0000)
committerWalter Dörwald <walter@livinglogic.de>
Mon, 14 Mar 2005 19:26:47 +0000 (19:26 +0000)
Add default value for "whence" argument.

Lib/codecs.py

index 092da0c7d7598c3704d723c0878d71482574d75b..022b51b23a4d199fbad31c691e426a3e341fc44c 100644 (file)
@@ -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.