[Python-checkins] python/dist/src/Objects fileobject.c,2.170,2.171

loewis@users.sourceforge.net loewis@users.sourceforge.net
Wed, 11 Dec 2002 05:06:55 -0800


Update of /cvsroot/python/python/dist/src/Objects
In directory sc8-pr-cvs1:/tmp/cvs-serv27678

Modified Files:
	fileobject.c 
Log Message:
Patch #650834: Document 'U' in file mode, remove stale variables.


Index: fileobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/fileobject.c,v
retrieving revision 2.170
retrieving revision 2.171
diff -C2 -d -r2.170 -r2.171
*** fileobject.c	21 Nov 2002 23:52:35 -0000	2.170
--- fileobject.c	11 Dec 2002 13:06:53 -0000	2.171
***************
*** 1615,1619 ****
  	 "flag indicating that a space needs to be printed; used by print"},
  	{"mode",	T_OBJECT,	OFF(f_mode),	RO,
! 	 "file mode ('r', 'w', 'a', possibly with 'b' or '+' added)"},
  	{"name",	T_OBJECT,	OFF(f_name),	RO,
  	 "file name"},
--- 1615,1619 ----
  	 "flag indicating that a space needs to be printed; used by print"},
  	{"mode",	T_OBJECT,	OFF(f_mode),	RO,
! 	 "file mode ('r', 'U', 'w', 'a', possibly with 'b' or '+' added)"},
  	{"name",	T_OBJECT,	OFF(f_name),	RO,
  	 "file name"},
***************
*** 1768,1777 ****
  	PyStringObject* l;
  
- 	int i;
- 
  	if (f->f_fp == NULL)
  		return err_closed();
- 
- 	i = f->f_softspace;
  
  	l = readahead_get_line_skip(f, 0, READAHEAD_BUFSIZE);
--- 1768,1773 ----