[Python-checkins] python/dist/src/Lib codecs.py,1.39,1.40

doerwalter at users.sourceforge.net doerwalter at users.sourceforge.net
Mon Mar 14 20:25:45 CET 2005


Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16113/Lib

Modified Files:
	codecs.py 
Log Message:
Add default value for "whence" argument.


Index: codecs.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/codecs.py,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -d -r1.39 -r1.40
--- codecs.py	14 Mar 2005 19:06:25 -0000	1.39
+++ codecs.py	14 Mar 2005 19:25:41 -0000	1.40
@@ -360,7 +360,7 @@
         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.



More information about the Python-checkins mailing list