1. Carl Meyer
  2. cpython

Commits

Walter Dörwald  committed 11b4350

Backport checkin:
Add default value for "whence" argument.

  • Participants
  • Parent commits 962800e
  • Branches 2.4

Comments (0)

Files changed (1)

File Lib/codecs.py

View file
  • Ignore whitespace
         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.