lib/rubypython/rubypyproxy.rb in rubypython-0.5.3 vs lib/rubypython/rubypyproxy.rb in rubypython-0.6.0
- old
+ new
@@ -94,10 +94,10 @@
# active, RubyPython first attempts to convert the returned object to a
# native Ruby type, and then only wraps the object if this fails.
def _wrap(pyobject)
if pyobject.class?
RubyPyClass.new(pyobject)
- elsif RubyPython.legacy_mode
+ elsif RubyPython.__send__ :legacy_mode?
pyobject.rubify
else
RubyPyProxy.new(pyobject)
end
rescue Conversion::UnsupportedConversion => exc