summaryrefslogtreecommitdiffstats
path: root/Lib/codecs.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2002-03-12 20:37:02 (GMT)
committerGuido van Rossum <guido@python.org>2002-03-12 20:37:02 (GMT)
commitcd637aae5665d40c405a173efd5d9f174e63bf5c (patch)
treebc953dd4083fe28e325e56921cb73a890a9f0e46 /Lib/codecs.py
parent6ccdccd35d176dd2fa8685f187f257184a95eb97 (diff)
downloadcpython-cd637aae5665d40c405a173efd5d9f174e63bf5c.zip
cpython-cd637aae5665d40c405a173efd5d9f174e63bf5c.tar.gz
cpython-cd637aae5665d40c405a173efd5d9f174e63bf5c.tar.bz2
Fix for SF bug #529050 - ModuleType.__new__ crash.
There were several places that assumed the md_dict field was always set, but it needn't be. Fixed these to be more careful. I changed PyModule_GetDict() to initialize md_dict to a new dictionary if it's NULL. Bugfix candidate.
Diffstat (limited to 'Lib/codecs.py')
0 files changed, 0 insertions, 0 deletions