Skip to content

Commit

Permalink
Fix Python3 issue (PyInt_Check -> PyLong_Check)
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Kelley committed Jul 15, 2015
1 parent 4eb4c61 commit ad99cc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Code/GraphMol/FilterCatalog/Wrap/FilterCatalog.cpp
Expand Up @@ -168,7 +168,7 @@ namespace RDKit{
};

bool FilterCatalogRemoveEntry(FilterCatalog &fc, const boost::python::object &obj) {
if(PyInt_Check(obj.ptr())) {
if(PyLong_Check(obj.ptr())) {
return fc.removeEntry(python::extract<unsigned int>(obj));
}
unsigned int idx = fc.getIdxForEntry(python::extract<FilterCatalogEntry*>(obj));
Expand Down

0 comments on commit ad99cc6

Please sign in to comment.