Add default value for "whence" argument.
This commit is contained in:
parent
729c31f5c3
commit
71fd90da87
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue