From 1061f5a06a96a7054773e17a481e4aa1ab185013 Mon Sep 17 00:00:00 2001 From: Stephan Rave Date: Thu, 20 Apr 2017 09:38:17 +0200 Subject: [PATCH] [py2] fix RuleTable inheritance check --- src/pymor/algorithms/rules.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pymor/algorithms/rules.py b/src/pymor/algorithms/rules.py index dddba85d31..426bcb1334 100644 --- a/src/pymor/algorithms/rules.py +++ b/src/pymor/algorithms/rules.py @@ -89,7 +89,7 @@ class RuleTableMeta(type): def __new__(cls, name, parents, dct): assert 'rules' not in dct rules = [] - if not {p.__name__ for p in parents} <= {'RuleTable'}: + if not {p.__name__ for p in parents} <= {'RuleTable', 'object'}: raise NotImplementedError('Inheritance for RuleTables not implemented yet.') for k, v in dct.items(): if isinstance(v, rule):