@@ -322,7 +322,7 @@ parser_st2tuple(PyST_Object *self, PyObject *args, PyObject *kw)
322322 PyObject * res = 0 ;
323323 int ok ;
324324
325- static char * keywords [] = {"ast " , "line_info" , "col_info" , NULL };
325+ static char * keywords [] = {"st " , "line_info" , "col_info" , NULL };
326326
327327 if (self == NULL || PyModule_Check (self )) {
328328 ok = PyArg_ParseTupleAndKeywords (args , kw , "O!|OO:st2tuple" , keywords ,
@@ -366,7 +366,7 @@ parser_st2list(PyST_Object *self, PyObject *args, PyObject *kw)
366366 PyObject * res = 0 ;
367367 int ok ;
368368
369- static char * keywords [] = {"ast " , "line_info" , "col_info" , NULL };
369+ static char * keywords [] = {"st " , "line_info" , "col_info" , NULL };
370370
371371 if (self == NULL || PyModule_Check (self ))
372372 ok = PyArg_ParseTupleAndKeywords (args , kw , "O!|OO:st2list" , keywords ,
@@ -408,7 +408,7 @@ parser_compilest(PyST_Object *self, PyObject *args, PyObject *kw)
408408 char * str = "<syntax-tree>" ;
409409 int ok ;
410410
411- static char * keywords [] = {"ast " , "filename" , NULL };
411+ static char * keywords [] = {"st " , "filename" , NULL };
412412
413413 if (self == NULL || PyModule_Check (self ))
414414 ok = PyArg_ParseTupleAndKeywords (args , kw , "O!|s:compilest" , keywords ,
@@ -437,7 +437,7 @@ parser_isexpr(PyST_Object *self, PyObject *args, PyObject *kw)
437437 PyObject * res = 0 ;
438438 int ok ;
439439
440- static char * keywords [] = {"ast " , NULL };
440+ static char * keywords [] = {"st " , NULL };
441441
442442 if (self == NULL || PyModule_Check (self ))
443443 ok = PyArg_ParseTupleAndKeywords (args , kw , "O!:isexpr" , keywords ,
@@ -460,7 +460,7 @@ parser_issuite(PyST_Object *self, PyObject *args, PyObject *kw)
460460 PyObject * res = 0 ;
461461 int ok ;
462462
463- static char * keywords [] = {"ast " , NULL };
463+ static char * keywords [] = {"st " , NULL };
464464
465465 if (self == NULL || PyModule_Check (self ))
466466 ok = PyArg_ParseTupleAndKeywords (args , kw , "O!:issuite" , keywords ,
@@ -3011,12 +3011,6 @@ parser__pickler(PyObject *self, PyObject *args)
30113011 * inheritance.
30123012 */
30133013static PyMethodDef parser_functions [] = {
3014- {"ast2tuple" , (PyCFunction )parser_st2tuple , PUBLIC_METHOD_TYPE ,
3015- PyDoc_STR ("Creates a tuple-tree representation of an ST." )},
3016- {"ast2list" , (PyCFunction )parser_st2list , PUBLIC_METHOD_TYPE ,
3017- PyDoc_STR ("Creates a list-tree representation of an ST." )},
3018- {"compileast" , (PyCFunction )parser_compilest , PUBLIC_METHOD_TYPE ,
3019- PyDoc_STR ("Compiles an ST object into a code object." )},
30203014 {"compilest" , (PyCFunction )parser_compilest , PUBLIC_METHOD_TYPE ,
30213015 PyDoc_STR ("Compiles an ST object into a code object." )},
30223016 {"expr" , (PyCFunction )parser_expr , PUBLIC_METHOD_TYPE ,
@@ -3027,16 +3021,12 @@ static PyMethodDef parser_functions[] = {
30273021 PyDoc_STR ("Determines if an ST object was created from a suite." )},
30283022 {"suite" , (PyCFunction )parser_suite , PUBLIC_METHOD_TYPE ,
30293023 PyDoc_STR ("Creates an ST object from a suite." )},
3030- {"sequence2ast" , (PyCFunction )parser_tuple2st , PUBLIC_METHOD_TYPE ,
3031- PyDoc_STR ("Creates an ST object from a tree representation." )},
30323024 {"sequence2st" , (PyCFunction )parser_tuple2st , PUBLIC_METHOD_TYPE ,
30333025 PyDoc_STR ("Creates an ST object from a tree representation." )},
30343026 {"st2tuple" , (PyCFunction )parser_st2tuple , PUBLIC_METHOD_TYPE ,
30353027 PyDoc_STR ("Creates a tuple-tree representation of an ST." )},
30363028 {"st2list" , (PyCFunction )parser_st2list , PUBLIC_METHOD_TYPE ,
30373029 PyDoc_STR ("Creates a list-tree representation of an ST." )},
3038- {"tuple2ast" , (PyCFunction )parser_tuple2st , PUBLIC_METHOD_TYPE ,
3039- PyDoc_STR ("Creates an ST object from a tree representation." )},
30403030 {"tuple2st" , (PyCFunction )parser_tuple2st , PUBLIC_METHOD_TYPE ,
30413031 PyDoc_STR ("Creates an ST object from a tree representation." )},
30423032
@@ -3089,8 +3079,6 @@ PyInit_parser(void)
30893079 if (PyModule_AddObject (module , "ParserError" , parser_error ) != 0 )
30903080 return NULL ;
30913081
3092- Py_INCREF (& PyST_Type );
3093- PyModule_AddObject (module , "ASTType" , (PyObject * )& PyST_Type );
30943082 Py_INCREF (& PyST_Type );
30953083 PyModule_AddObject (module , "STType" , (PyObject * )& PyST_Type );
30963084
0 commit comments