From 754d4a6e00f45bd0961479d92598b8eb6979137a Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Tue, 11 Sep 2018 21:17:28 +0200 Subject: [PATCH] remove FORBIDDEN_NAMES (no more getattr) --- tiramisu/option/baseoption.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tiramisu/option/baseoption.py b/tiramisu/option/baseoption.py index 82b77f8..b0d9599 100644 --- a/tiramisu/option/baseoption.py +++ b/tiramisu/option/baseoption.py @@ -35,9 +35,6 @@ STATIC_TUPLE = frozenset() submulti = 2 NAME_REGEXP = re.compile(r'^[a-zA-Z][a-zA-Z\d_-]*$') -FORBIDDEN_NAMES = frozenset(['iter_all', 'iter_group', 'find', 'find_first', - 'make_dict', 'read_only', - 'read_write', 'getowner', 'set_contexts']) def valid_name(name): @@ -46,7 +43,6 @@ def valid_name(name): if not isinstance(name, str): return False return re.match(NAME_REGEXP, name) is not None and \ - name not in FORBIDDEN_NAMES and \ not name.startswith('impl_') and \ not name.startswith('cfgimpl_')