mirror of
https://github.com/vim/vim.git
synced 2025-10-22 08:34:29 -04:00
patch 9.1.1673: if_python: still support for Python 1
Problem: if_python: still support for Python 1 Solution: Drop outdated code (Hirohito Higashi) closes: #18092 Signed-off-by: Hirohito Higashi <h.east.727@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
69a337edc1
commit
e2a6ba00f1
@@ -838,10 +838,6 @@ static int PythonMod_Init(void);
|
|||||||
///////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////
|
||||||
// 1. Python interpreter main program.
|
// 1. Python interpreter main program.
|
||||||
|
|
||||||
#if PYTHON_API_VERSION < 1007 // Python 1.4
|
|
||||||
typedef PyObject PyThreadState;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef PY_CAN_RECURSE
|
#ifndef PY_CAN_RECURSE
|
||||||
static PyThreadState *saved_python_thread = NULL;
|
static PyThreadState *saved_python_thread = NULL;
|
||||||
|
|
||||||
@@ -1561,17 +1557,6 @@ do_pyeval(char_u *str, dict_T *locals, typval_T *rettv)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Don't generate a prototype for the next function, it generates an error on
|
|
||||||
// newer Python versions.
|
|
||||||
#if PYTHON_API_VERSION < 1007 /* Python 1.4 */ && !defined(PROTO)
|
|
||||||
|
|
||||||
char *
|
|
||||||
Py_GetProgramName(void)
|
|
||||||
{
|
|
||||||
return "vim";
|
|
||||||
}
|
|
||||||
#endif // Python 1.4
|
|
||||||
|
|
||||||
int
|
int
|
||||||
set_ref_in_python(int copyID)
|
set_ref_in_python(int copyID)
|
||||||
{
|
{
|
||||||
|
@@ -724,6 +724,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1673,
|
||||||
/**/
|
/**/
|
||||||
1672,
|
1672,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user