diff options
author | Jim Ingham <jingham@apple.com> | 2019-10-03 23:57:34 +0000 |
---|---|---|
committer | Jim Ingham <jingham@apple.com> | 2019-10-03 23:57:34 +0000 |
commit | ebaa3eb127632851e3b7dbcceb98c0a2155c6324 (patch) | |
tree | 452f48fe0470029ccb277038e0d7b02faf927ad7 /lldb/source/Plugins | |
parent | 71662116fd9626b398a03283406a5e28c807f57c (diff) | |
download | bcm5719-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.cpp | 2 |
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() ) { |