<rdar://problem/15906684>
The way in which we were determining whether a python module had already been imported in the current session stopped working due to the IOHandler changes As a result, importing in a new debug session a module which had been imported in a previous session did not work This commit restores that functionality by checking for the module's presence in the session dictionary (which should be more correct anyway) llvm-svn: 201623
This commit is contained in:
@@ -84,6 +84,12 @@ PythonObject::Str ()
|
||||
return PythonString(str);
|
||||
}
|
||||
|
||||
bool
|
||||
PythonObject::IsNULLOrNone () const
|
||||
{
|
||||
return ((m_py_obj == nullptr) || (m_py_obj == Py_None));
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
// PythonString
|
||||
//----------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user