Skip to content

Commit ba363f5

Browse files
committed
__graalpython__ builtins: rename attributes to delegate_attributes
1 parent 700ed74 commit ba363f5

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

graalpython/lib-graalpython/__graalpython__.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,8 @@ def __getattr__(attr):
9393

9494

9595
@builtin
96-
def import_current_as_named_module_with_delegate(module_name, delegate_name, attributes=None, owner_globals=None):
96+
def import_current_as_named_module_with_delegate(module_name, delegate_name, delegate_attributes=None,
97+
owner_globals=None):
9798
owner_module = import_current_as_named_module(module_name, owner_globals=owner_globals)
98-
if attributes:
99-
lazy_attributes_from_delegate(delegate_name, attributes, owner_module)
99+
if delegate_attributes:
100+
lazy_attributes_from_delegate(delegate_name, delegate_attributes, owner_module)

graalpython/lib-graalpython/_struct.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,6 @@
4141
__graalpython__.import_current_as_named_module_with_delegate(
4242
module_name="_struct",
4343
delegate_name="_cpython_struct",
44-
attributes=['Struct', '_clearcache', 'calcsize', 'error', 'iter_unpack', 'pack', 'pack_into', 'unpack',
45-
'unpack_from'],
44+
delegate_attributes=['Struct', '_clearcache', 'calcsize', 'error', 'iter_unpack', 'pack', 'pack_into', 'unpack',
45+
'unpack_from'],
4646
owner_globals=globals())

0 commit comments

Comments
 (0)