diff options
author | Walter Dörwald <walter@livinglogic.de> | 2005-03-14 19:26:47 (GMT) |
---|---|---|
committer | Walter Dörwald <walter@livinglogic.de> | 2005-03-14 19:26:47 (GMT) |
commit | 2a20d4bd31167d43331921833cb54b93d5423f83 (patch) | |
tree | 6a3779fb2d0e0030ed81668a0728b958fc953a91 /Lib | |
parent | 96aeafbfbcd1fe6a6f5703d030560a133f7baf1f (diff) | |
download | cpython-2a20d4bd31167d43331921833cb54b93d5423f83.zip cpython-2a20d4bd31167d43331921833cb54b93d5423f83.tar.gz cpython-2a20d4bd31167d43331921833cb54b93d5423f83.tar.bz2 |
Backport checkin:
Add default value for "whence" argument.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/codecs.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/codecs.py b/Lib/codecs.py index 092da0c..022b51b 100644 --- a/Lib/codecs.py +++ b/Lib/codecs.py @@ -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. |