Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 71fd90d

Browse files
committed
Add default value for "whence" argument.
1 parent 729c31f commit 71fd90d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/codecs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ def reset(self):
360360
self.charbuffer = u""
361361
self.atcr = False
362362

363-
def seek(self, offset, whence):
363+
def seek(self, offset, whence=0):
364364
""" Set the input stream's current position.
365365
366366
Resets the codec buffers used for keeping state.

0 commit comments

Comments
 (0)