summaryrefslogtreecommitdiff
path: root/pyinterp.h
diff options
context:
space:
mode:
Diffstat (limited to 'pyinterp.h')
-rw-r--r--pyinterp.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/pyinterp.h b/pyinterp.h
index 4d3ac0c8..5486eea5 100644
--- a/pyinterp.h
+++ b/pyinterp.h
@@ -39,8 +39,7 @@
namespace ledger {
-class python_interpreter_t
- : public noncopyable, public expr_t::symbol_scope_t
+class python_interpreter_t : public noncopyable, public scope_t
{
boost::python::handle<> mmodule;
@@ -95,8 +94,7 @@ public:
virtual expr_t::ptr_op_t lookup(const string& name) {
if (boost::python::object func = eval(name))
return WRAP_FUNCTOR(functor_t(name, func));
- else
- return expr_t::symbol_scope_t::lookup(name);
+ return expr_t::ptr_op_t();
}
class lambda_t : public functor_t {