]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
backport jhylton's checkin of
authorMichael W. Hudson <mwh@python.net>
Tue, 24 Sep 2002 11:53:34 +0000 (11:53 +0000)
committerMichael W. Hudson <mwh@python.net>
Tue, 24 Sep 2002 11:53:34 +0000 (11:53 +0000)
commited9bb76950cc233caaea74b81a80ce188402fc74
tree53e824bf3201d44f2ff72453038354cad4ce658c
parent070fe1680a1d57ee4ea611b6b96370fa7eaf86ad
backport jhylton's checkin of
    revision 2.87 of cPickle.c

Do more robust test of whether global objects are accessible.

PyImport_ImportModule() is not guaranteed to return a module object.
When another type of object was returned, the PyModule_GetDict() call
return NULL and the subsequent GetItem() seg faulted.

Bug fix candidate.

----------

Once again, whitespace chances scuppered automatic backporting, so
I did this by hand.  Review probably wise -- but I have run make test!

Also incorporates revision 2.88 which was just removing a now unused
declaration.
Modules/cPickle.c