summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2019-10-03 23:57:34 +0000
committerJim Ingham <jingham@apple.com>2019-10-03 23:57:34 +0000
commitebaa3eb127632851e3b7dbcceb98c0a2155c6324 (patch)
tree452f48fe0470029ccb277038e0d7b02faf927ad7 /lldb/source/Plugins
parent71662116fd9626b398a03283406a5e28c807f57c (diff)
downloadbcm5719-llvm-ebaa3eb127632851e3b7dbcceb98c0a2155c6324.tar.gz
bcm5719-llvm-ebaa3eb127632851e3b7dbcceb98c0a2155c6324.zip
Python3 doesn't seem to allow you to tell whether an object is a class
PyClass_Check and everything it relied on seems gone from Python3.7. So I won't check whether it is a class first... Also cleaned up a couple of warnings. llvm-svn: 373679
Diffstat (limited to 'lldb/source/Plugins')
-rw-r--r--lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp b/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp
index 1862bbd9298..180de988d83 100644
--- a/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp
+++ b/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp
@@ -892,8 +892,6 @@ PythonCallable::ArgInfo PythonCallable::GetNumInitArguments() const {
if (!IsValid())
return result;
PyObject *py_func_obj = m_py_obj;
- if (!PyClass_Check(m_py_obj))
- return result;
PythonObject __init__ = GetAttributeValue("__init__");
if (__init__.IsValid() ) {
OpenPOWER on IntegriCloud