[Python-checkins] CVS: python/dist/src/Modules cPickle.c,2.54,2.55
Tim Peters
tim_one@users.sourceforge.net
Fri, 16 Mar 2001 20:50:53 -0800
Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv10036/python/dist/src/Modules
Modified Files:
cPickle.c
Log Message:
SF bug [ #233200 ] cPickle does not use Py_BEGIN_ALLOW_THREADS.
http://sourceforge.net/tracker/?func=detail&aid=233200&group_id=5470&atid=105470
Wrapped the fread/fwrite calls in thread BEGIN_ALLOW/END_ALLOW brackets
Afraid I hit the "delete trailing whitespace key" too! Only two "real" sections
of code changed here.
Index: cPickle.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/cPickle.c,v
retrieving revision 2.54
retrieving revision 2.55
diff -C2 -r2.54 -r2.55
*** cPickle.c 2000/12/19 02:08:38 2.54
--- cPickle.c 2001/03/17 04:50:51 2.55
***************
*** 1,25 ****
/*
* cPickle.c,v 1.71 1999/07/11 13:30:34 jim Exp
! *
! * Copyright (c) 1996-1998, Digital Creations, Fredericksburg, VA, USA.
* All rights reserved.
! *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
! *
[...1826 lines suppressed...]
PycString_IMPORT;
!
return 0;
}
***************
*** 4574,4579 ****
PdataType.ob_type = &PyType_Type;
! /* Initialize some pieces. We need to do this before module creation,
! so we're forced to use a temporary dictionary. :(
*/
di=PyDict_New();
--- 4583,4588 ----
PdataType.ob_type = &PyType_Type;
! /* Initialize some pieces. We need to do this before module creation,
! so we're forced to use a temporary dictionary. :(
*/
di=PyDict_New();