diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2014-01-20 21:35:06 +0200 |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2014-01-20 21:35:06 +0200 |
commit | 6d242b52c9e09deb024b2d822aa0e34044b71f8c (patch) | |
tree | 61acffd5442e6e837e3a23be1ca086802d67738d /Modules/_lsprof.c | |
parent | fdd552596d019b51bf0077cf1eefae6d6e776828 (diff) | |
parent | ee56cf6250eb8a384eee408224abc9ababad1282 (diff) | |
download | cpython-6d242b52c9e09deb024b2d822aa0e34044b71f8c.tar.gz |
Issue #20315: Removed support for backward compatibility with early 2.x versions.
Removed backward compatibility alias curses.window.nooutrefresh which should
be removed in 2.3.
Diffstat (limited to 'Modules/_lsprof.c')
-rw-r--r-- | Modules/_lsprof.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/Modules/_lsprof.c b/Modules/_lsprof.c index 894788916d..0137d95443 100644 --- a/Modules/_lsprof.c +++ b/Modules/_lsprof.c @@ -451,7 +451,6 @@ profiler_callback(PyObject *self, PyFrameObject *frame, int what, PyTrace_RETURN event will be generated, so we don't need to handle it. */ -#ifdef PyTrace_C_CALL /* not defined in Python <= 2.3 */ /* the Python function 'frame' is issuing a call to the built-in function 'arg' */ case PyTrace_C_CALL: @@ -473,7 +472,6 @@ profiler_callback(PyObject *self, PyFrameObject *frame, int what, ((PyCFunctionObject *)arg)->m_ml); } break; -#endif default: break; @@ -663,13 +661,7 @@ setBuiltins(ProfilerObject *pObj, int nvalue) if (nvalue == 0) pObj->flags &= ~POF_BUILTINS; else if (nvalue > 0) { -#ifndef PyTrace_C_CALL - PyErr_SetString(PyExc_ValueError, - "builtins=True requires Python >= 2.4"); - return -1; -#else pObj->flags |= POF_BUILTINS; -#endif } return 0; } @@ -767,11 +759,7 @@ profiler_init(ProfilerObject *pObj, PyObject *args, PyObject *kw) PyObject *timer = NULL; double timeunit = 0.0; int subcalls = 1; -#ifdef PyTrace_C_CALL int builtins = 1; -#else - int builtins = 0; -#endif static char *kwlist[] = {"timer", "timeunit", "subcalls", "builtins", 0}; |