Skip to content

Commit f0db7ae

Browse files
committed
Fix unicodedata methods delegation to _cpython_unicodedata and delegate only specified ones
1 parent 82ef956 commit f0db7ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

graalpython/lib-graalpython/__graalpython__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved.
1+
# Copyright (c) 2020, 2025, Oracle and/or its affiliates. All rights reserved.
22
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
33
#
44
# The Universal Permissive License (UPL), Version 1.0
@@ -73,7 +73,6 @@ def lazy_attributes_from_delegate(module, delegate_name, attributes, owner_modul
7373
:param on_import_error: a dict of replacement attributes in case of import error
7474
:return:
7575
"""
76-
attributes.append('__all__')
7776

7877
def __getattr__(attr):
7978
if attr in attributes:
@@ -86,6 +85,7 @@ def __getattr__(attr):
8685
raise
8786

8887
new_globals = dict(**delegate_module.__dict__)
88+
new_globals = { key: new_globals[key] for key in attributes }
8989
new_globals.update(**owner_module.__dict__)
9090
owner_module.__dict__.update(**new_globals)
9191

0 commit comments

Comments
 (0)