193
193
import com .oracle .graal .python .builtins .objects .tuple .StructSequence .Descriptor ;
194
194
import com .oracle .graal .python .builtins .objects .type .PythonAbstractClass ;
195
195
import com .oracle .graal .python .builtins .objects .type .PythonBuiltinClass ;
196
- import com .oracle .graal .python .builtins .objects .type .PythonClass ;
197
196
import com .oracle .graal .python .builtins .objects .type .PythonManagedClass ;
198
197
import com .oracle .graal .python .builtins .objects .type .SpecialMethodSlot ;
199
198
import com .oracle .graal .python .builtins .objects .type .TypeNodes ;
@@ -295,7 +294,6 @@ public final class PythonCextBuiltins extends PythonBuiltins {
295
294
296
295
public static final String PYTHON_CEXT = "python_cext" ;
297
296
298
- private static final String ERROR_HANDLER = "error_handler" ;
299
297
public static final String NATIVE_NULL = "native_null" ;
300
298
301
299
private PythonObject errorHandler ;
@@ -308,11 +306,6 @@ protected List<? extends NodeFactory<? extends PythonBuiltinBaseNode>> getNodeFa
308
306
@ Override
309
307
public void initialize (Python3Core core ) {
310
308
super .initialize (core );
311
- PythonClass errorHandlerClass = core .factory ().createPythonClassAndFixupSlots (core .getLanguage (), PythonBuiltinClassType .PythonClass ,
312
- "CErrorHandler" , new PythonAbstractClass []{core .lookupType (PythonBuiltinClassType .PythonObject )});
313
- builtinConstants .put ("CErrorHandler" , errorHandlerClass );
314
- errorHandler = core .factory ().createPythonObject (errorHandlerClass );
315
- builtinConstants .put (ERROR_HANDLER , errorHandler );
316
309
// TODO can be removed when python_cext.py is gone
317
310
builtinConstants .put (NATIVE_NULL , core .getContext ().getNativeNull ());
318
311
builtinConstants .put ("PyEval_SaveThread" , new PyEvalSaveThread ());
@@ -378,15 +371,6 @@ Object run(VirtualFrame frame, Object o) {
378
371
}
379
372
}
380
373
381
- @ Builtin (name = "Py_ErrorHandler" , minNumOfPositionalArgs = 1 , declaresExplicitSelf = true )
382
- @ GenerateNodeFactory
383
- public abstract static class PyErrorHandlerNode extends PythonUnaryBuiltinNode {
384
- @ Specialization
385
- static Object run (PythonModule cextPython ) {
386
- return ((PythonCextBuiltins ) cextPython .getBuiltins ()).errorHandler ;
387
- }
388
- }
389
-
390
374
@ Builtin (name = "Py_NotImplemented" )
391
375
@ GenerateNodeFactory
392
376
public abstract static class PyNotImplementedNode extends PythonBuiltinNode {
0 commit comments