Add default value for "whence" argument.

This commit is contained in:
Walter Dörwald 2005-03-14 19:25:41 +00:00
parent 729c31f5c3
commit 71fd90da87
1 changed files with 1 additions and 1 deletions

View 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.