[Python-checkins] python/dist/src/Modules _ssl.c, 1.13, 1.14 datetimemodule.c, 1.68, 1.69 main.c, 1.78, 1.79 md5c.c, 2.7, 2.8 posixmodule.c, 2.305, 2.306 pypcre.c, 2.25, 2.26 socketmodule.c, 1.276, 1.277

doerwalter at users.sourceforge.net doerwalter at users.sourceforge.net
Mon Oct 20 10:01:56 EDT 2003


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

Modified Files:
	_ssl.c datetimemodule.c main.c md5c.c posixmodule.c pypcre.c 
	socketmodule.c 
Log Message:
Fix a bunch of typos in documentation, docstrings and comments.
(From SF patch #810751)


Index: _ssl.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/_ssl.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** _ssl.c	30 Jun 2003 03:25:19 -0000	1.13
--- _ssl.c	20 Oct 2003 14:01:52 -0000	1.14
***************
*** 225,229 ****
  	SSL_set_fd(self->ssl, Sock->sock_fd);	/* Set the socket for SSL */
  
! 	/* If the socket is is non-blocking mode or timeout mode, set the BIO
  	 * to non-blocking mode (blocking is the default)
  	 */
--- 225,229 ----
  	SSL_set_fd(self->ssl, Sock->sock_fd);	/* Set the socket for SSL */
  
! 	/* If the socket is in non-blocking mode or timeout mode, set the BIO
  	 * to non-blocking mode (blocking is the default)
  	 */

Index: datetimemodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/datetimemodule.c,v
retrieving revision 1.68
retrieving revision 1.69
diff -C2 -d -r1.68 -r1.69
*** datetimemodule.c	12 Oct 2003 19:09:36 -0000	1.68
--- datetimemodule.c	20 Oct 2003 14:01:53 -0000	1.69
***************
*** 900,904 ****
   * returns None, call_dst returns 0 and sets *none to 1.  If dst()
   & doesn't return None or timedelta, TypeError is raised and this
!  * returns -1.  If dst() returns an invalid timedelta for for a UTC offset,
   * ValueError is raised and this returns -1.  Else *none is set to 0 and
   * the offset is returned (as an int # of minutes east of UTC).
--- 900,904 ----
   * returns None, call_dst returns 0 and sets *none to 1.  If dst()
   & doesn't return None or timedelta, TypeError is raised and this
!  * returns -1.  If dst() returns an invalid timedelta for a UTC offset,
   * ValueError is raised and this returns -1.  Else *none is set to 0 and
   * the offset is returned (as an int # of minutes east of UTC).
***************
*** 4819,4823 ****
  Because we know z.d said z was in daylight time (else [5] would have held and
  we would have stopped then), and we know z.d != z'.d (else [8] would have held
! and we we have stopped then), and there are only 2 possible values dst() can
  return in Eastern, it follows that z'.d must be 0 (which it is in the example,
  but the reasoning doesn't depend on the example -- it depends on there being
--- 4819,4823 ----
  Because we know z.d said z was in daylight time (else [5] would have held and
  we would have stopped then), and we know z.d != z'.d (else [8] would have held
! and we would have stopped then), and there are only 2 possible values dst() can
  return in Eastern, it follows that z'.d must be 0 (which it is in the example,
  but the reasoning doesn't depend on the example -- it depends on there being

Index: main.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/main.c,v
retrieving revision 1.78
retrieving revision 1.79
diff -C2 -d -r1.78 -r1.79
*** main.c	29 Jun 2003 17:07:06 -0000	1.78
--- main.c	20 Oct 2003 14:01:53 -0000	1.79
***************
*** 155,159 ****
  			/* -c is the last option; following arguments
  			   that look like options are left for the
! 			   the command to interpret. */
  			command = malloc(strlen(_PyOS_optarg) + 2);
  			if (command == NULL)
--- 155,159 ----
  			/* -c is the last option; following arguments
  			   that look like options are left for the
! 			   command to interpret. */
  			command = malloc(strlen(_PyOS_optarg) + 2);
  			if (command == NULL)

Index: md5c.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/md5c.c,v
retrieving revision 2.7
retrieving revision 2.8
diff -C2 -d -r2.7 -r2.8
*** md5c.c	24 Sep 2001 17:14:40 -0000	2.7
--- md5c.c	20 Oct 2003 14:01:53 -0000	2.8
***************
*** 142,146 ****
  
  /* MD5 finalization. Ends an MD5 message-digest operation, writing the
!   the message digest and zeroing the context.
   */
  void
--- 142,146 ----
  
  /* MD5 finalization. Ends an MD5 message-digest operation, writing the
!   message digest and zeroing the context.
   */
  void

Index: posixmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/posixmodule.c,v
retrieving revision 2.305
retrieving revision 2.306
diff -C2 -d -r2.305 -r2.306
*** posixmodule.c	12 Oct 2003 19:09:36 -0000	2.305
--- posixmodule.c	20 Oct 2003 14:01:53 -0000	2.306
***************
*** 3954,3958 ****
  	/* Create new output read handle and the input write handle. Set
  	 * the inheritance properties to FALSE. Otherwise, the child inherits
! 	 * the these handles; resulting in non-closeable handles to the pipes
  	 * being created. */
  	 fSuccess = DuplicateHandle(GetCurrentProcess(), hChildStdinWr,
--- 3954,3958 ----
  	/* Create new output read handle and the input write handle. Set
  	 * the inheritance properties to FALSE. Otherwise, the child inherits
! 	 * these handles; resulting in non-closeable handles to the pipes
  	 * being created. */
  	 fSuccess = DuplicateHandle(GetCurrentProcess(), hChildStdinWr,

Index: pypcre.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/pypcre.c,v
retrieving revision 2.25
retrieving revision 2.26
diff -C2 -d -r2.25 -r2.26
*** pypcre.c	26 Jun 2002 20:41:30 -0000	2.25
--- pypcre.c	20 Oct 2003 14:01:54 -0000	2.26
***************
*** 574,578 ****
  /* #define DEBUG */
  
! /* Use a macro for debugging printing, 'cause that eliminates the the use
  of #ifdef inline, and there are *still* stupid compilers about that don't like
  indented pre-processor statements. I suppose it's only been 10 years... */
--- 574,578 ----
  /* #define DEBUG */
  
! /* Use a macro for debugging printing, 'cause that eliminates the use
  of #ifdef inline, and there are *still* stupid compilers about that don't like
  indented pre-processor statements. I suppose it's only been 10 years... */

Index: socketmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/socketmodule.c,v
retrieving revision 1.276
retrieving revision 1.277
diff -C2 -d -r1.276 -r1.277
*** socketmodule.c	12 Oct 2003 19:09:37 -0000	1.276
--- socketmodule.c	20 Oct 2003 14:01:54 -0000	1.277
***************
*** 106,110 ****
   [*] not available on all platforms!");
  
! /* XXX This is a terrible mess of of platform-dependent preprocessor hacks.
     I hope some day someone can clean this up please... */
  
--- 106,110 ----
   [*] not available on all platforms!");
  
! /* XXX This is a terrible mess of platform-dependent preprocessor hacks.
     I hope some day someone can clean this up please... */
  





More information about the Python-checkins mailing list