mirror of
https://github.com/python/cpython.git
synced 2025-09-19 07:00:59 +00:00
Add default value for "whence" argument.
This commit is contained in:
parent
729c31f5c3
commit
71fd90da87
1 changed files with 1 additions and 1 deletions
|
@ -360,7 +360,7 @@ class StreamReader(Codec):
|
||||||
self.charbuffer = u""
|
self.charbuffer = u""
|
||||||
self.atcr = False
|
self.atcr = False
|
||||||
|
|
||||||
def seek(self, offset, whence):
|
def seek(self, offset, whence=0):
|
||||||
""" Set the input stream's current position.
|
""" Set the input stream's current position.
|
||||||
|
|
||||||
Resets the codec buffers used for keeping state.
|
Resets the codec buffers used for keeping state.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue