[Python-checkins] python/dist/src/Modules _ssl.c, 1.13, 1.13.6.1 datetimemodule.c, 1.67, 1.67.8.1 main.c, 1.78, 1.78.8.1 md5c.c, 2.7, 2.7.28.1 posixmodule.c, 2.300.8.2, 2.300.8.3 pypcre.c, 2.25, 2.25.16.1 socketmodule.c, 1.271.6.4, 1.271.6.5

doerwalter at users.sourceforge.net doerwalter at users.sourceforge.net
Mon Oct 20 10:34:50 EDT 2003


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

Modified Files:
      Tag: release23-maint
	_ssl.c datetimemodule.c main.c md5c.c posixmodule.c pypcre.c 
	socketmodule.c 
Log Message:
Backport checkin:
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.13.6.1
diff -C2 -d -r1.13 -r1.13.6.1
*** _ssl.c	30 Jun 2003 03:25:19 -0000	1.13
--- _ssl.c	20 Oct 2003 14:34:46 -0000	1.13.6.1
***************
*** 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.67
retrieving revision 1.67.8.1
diff -C2 -d -r1.67 -r1.67.8.1
*** datetimemodule.c	27 Jun 2003 08:14:17 -0000	1.67
--- datetimemodule.c	20 Oct 2003 14:34:46 -0000	1.67.8.1
***************
*** 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.78.8.1
diff -C2 -d -r1.78 -r1.78.8.1
*** main.c	29 Jun 2003 17:07:06 -0000	1.78
--- main.c	20 Oct 2003 14:34:47 -0000	1.78.8.1
***************
*** 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.7.28.1
diff -C2 -d -r2.7 -r2.7.28.1
*** md5c.c	24 Sep 2001 17:14:40 -0000	2.7
--- md5c.c	20 Oct 2003 14:34:47 -0000	2.7.28.1
***************
*** 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.300.8.2
retrieving revision 2.300.8.3
diff -C2 -d -r2.300.8.2 -r2.300.8.3
*** posixmodule.c	1 Sep 2003 22:32:39 -0000	2.300.8.2
--- posixmodule.c	20 Oct 2003 14:34:47 -0000	2.300.8.3
***************
*** 3936,3940 ****
  	/* 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,
--- 3936,3940 ----
  	/* 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.25.16.1
diff -C2 -d -r2.25 -r2.25.16.1
*** pypcre.c	26 Jun 2002 20:41:30 -0000	2.25
--- pypcre.c	20 Oct 2003 14:34:47 -0000	2.25.16.1
***************
*** 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.271.6.4
retrieving revision 1.271.6.5
diff -C2 -d -r1.271.6.4 -r1.271.6.5
*** socketmodule.c	4 Oct 2003 06:55:33 -0000	1.271.6.4
--- socketmodule.c	20 Oct 2003 14:34:47 -0000	1.271.6.5
***************
*** 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