Skip to content

Commit

Permalink
Refs #7085 Patching code for the new python API.
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Jackson committed Sep 17, 2013
1 parent 252d8d8 commit c4c6e72
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ namespace
const bool exclusive = false)
{
BoundedValidator<T> * validator = new BoundedValidator<T>();
if(!lower.is_none())
if(lower.ptr() != Py_None)
{
validator->setLower(extract<T>(lower), exclusive);
}
if(!upper.is_none())
if(upper.ptr() != Py_None)
{
validator->setUpper(extract<T>(upper), exclusive);
}
Expand Down

0 comments on commit c4c6e72

Please sign in to comment.