lib/pycall/conversion.rb in pycall-1.0.3 vs lib/pycall/conversion.rb in pycall-1.1.0.rc1
- old
+ new
@@ -30,10 +30,10 @@
#
# @param [PyCall::PyObjectStruct] pyptr a PyObjectStruct object.
#
# @return a Ruby object converted from `pyptr`.
def self.to_ruby(pyptr)
- return nil if pyptr.null? || PyCall.none?(pyptr)
+ return nil if pyptr.null? || pyptr.none?
case
when PyCall::Types.pyisinstance(pyptr, LibPython.PyType_Type)
return TypeObject.new(pyptr)