Skip to content

Commit 8eb686b

Browse files
committed
undo some more of the build_capi changes
1 parent d5996d8 commit 8eb686b

File tree

2 files changed

+4
-21
lines changed

2 files changed

+4
-21
lines changed

graalpython/lib-graalpython/unicodedata.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,7 @@
4545
@__builtin__
4646
def __get_c_unicodedata():
4747
if c_unicodedata_module is None:
48-
from build_capi import hint
49-
with hint("_cpython_unicodedata"):
50-
import _cpython_unicodedata
48+
import _cpython_unicodedata
5149
global c_unicodedata_module
5250
c_unicodedata_module = _cpython_unicodedata
5351
return c_unicodedata_module

graalpython/lib-python/3/struct.py

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,6 @@
1010
'error'
1111
]
1212

13-
14-
__cstruct = None
15-
16-
def make_delegate(p):
17-
def delegate(*args ,**kwargs):
18-
global __cstruct
19-
if not __cstruct:
20-
import _struct as __cstruct
21-
return getattr(__cstruct, p)(*args, **kwargs)
22-
delegate.__name__ = p
23-
return delegate
24-
25-
for p in __all__:
26-
globals()[p] = make_delegate(p)
27-
28-
#from _struct import *
29-
#from _struct import _clearcache
30-
#from _struct import __doc__
13+
from _struct import *
14+
from _struct import _clearcache
15+
from _struct import __doc__

0 commit comments

Comments
 (0)