Skip to content

Commit b21f7ae

Browse files
committed
fix getitem_looper not found
1 parent 709bc4d commit b21f7ae

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

purescripto/rts.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@ def _import_module_to_dict(m: str):
3535
return import_from_path(m, loc).__dict__
3636

3737

38-
def get_item_looper(depth, base, item):
38+
def getitem_looper(depth, base, item):
3939
while depth > 0:
4040
base = base[item]
4141
depth -= 1
4242
return base
4343

4444

45-
def get_attr_looper(depth, base, attr):
45+
def getattr_looper(depth, base, attr):
4646
# TODO: specializer here
4747
while depth > 0:
4848
base = get_attr(base, attr)
@@ -54,8 +54,8 @@ def get_attr_looper(depth, base, attr):
5454
"zfsr32": zfsr32,
5555
"Error": Exception,
5656
"import_module": _import_module_to_dict,
57-
get_attr_looper.__name__: get_attr_looper,
58-
get_item_looper.__name__: get_item_looper,
57+
getattr_looper.__name__: getattr_looper,
58+
getitem_looper.__name__: getitem_looper,
5959
}
6060

6161

0 commit comments

Comments
 (0)