Commits

Anonymous committed 78c58de

remove the is_none call, make the old boost happy

  • Participants
  • Parent commits 69239f1

Comments (0)

Files changed (1)

File src/Exception.cpp

 {  
   CPythonGIL python_gil;
 
-  PyObject *out = file.is_none() ? ::PySys_GetObject("stdout") : file.ptr();
+  PyObject *out = file.ptr() == Py_None ? ::PySys_GetObject("stdout") : file.ptr();
 
   m_msg->PrintCurrentStackTrace(::PyFile_AsFile(out));
 }