mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
Conversion of exceptions over from faked-up classes to new-style C types.
This commit is contained in:
parent
1fcdc232db
commit
7b9558d37d
16 changed files with 2316 additions and 2163 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue