[Python-checkins] python/dist/src/Modules cryptmodule.c,2.11,2.12

loewis@users.sourceforge.net loewis@users.sourceforge.net
Mon, 10 Jun 2002 23:22:33 -0700


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

Modified Files:
	cryptmodule.c 
Log Message:
Patch #488073: AtheOS port.


Index: cryptmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/cryptmodule.c,v
retrieving revision 2.11
retrieving revision 2.12
diff -C2 -d -r2.11 -r2.12
*** cryptmodule.c	31 Mar 2002 15:27:00 -0000	2.11
--- cryptmodule.c	11 Jun 2002 06:22:31 -0000	2.12
***************
*** 18,22 ****
  		return NULL;
  	}
! 	return PyString_FromString( crypt( word, salt ) );
  
  }
--- 18,24 ----
  		return NULL;
  	}
! 	/* On some platforms (AtheOS) crypt returns NULL for an invalid
! 	   salt. Return None in that case. XXX Maybe raise an exception?  */
! 	return Py_BuildValue("s", crypt(word, salt));
  
  }