summaryrefslogtreecommitdiffstats
path: root/Modules/cPickle.c
diff options
context:
space:
mode:
authorRichard Jones <richard@commonground.com.au>2006-05-27 12:29:24 (GMT)
committerRichard Jones <richard@commonground.com.au>2006-05-27 12:29:24 (GMT)
commit7b9558d37dc7f2c6ae984cf25d16b9bf5e532b77 (patch)
tree70f313905c1ef84f4ba281cab615c32e06820460 /Modules/cPickle.c
parent1fcdc232dbfbd05b92eaed42bf9f779d27c55a92 (diff)
downloadcpython-7b9558d37dc7f2c6ae984cf25d16b9bf5e532b77.zip
cpython-7b9558d37dc7f2c6ae984cf25d16b9bf5e532b77.tar.gz
cpython-7b9558d37dc7f2c6ae984cf25d16b9bf5e532b77.tar.bz2
Conversion of exceptions over from faked-up classes to new-style C types.
Diffstat (limited to 'Modules/cPickle.c')
-rw-r--r--Modules/cPickle.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/Modules/cPickle.c b/Modules/cPickle.c
index 4c630bb..85fd459 100644
--- a/Modules/cPickle.c
+++ b/Modules/cPickle.c
@@ -5625,7 +5625,6 @@ init_stuff(PyObject *module_dict)
if (!( t=PyDict_New())) return -1;
if (!( r=PyRun_String(
- "def __init__(self, *args): self.args=args\n\n"
"def __str__(self):\n"
" return self.args and ('%s' % self.args[0]) or '(what)'\n",
Py_file_input,
@@ -5645,7 +5644,6 @@ init_stuff(PyObject *module_dict)
if (!( t=PyDict_New())) return -1;
if (!( r=PyRun_String(
- "def __init__(self, *args): self.args=args\n\n"
"def __str__(self):\n"
" a=self.args\n"
" a=a and type(a[0]) or '(what)'\n"