File tree Expand file tree Collapse file tree 2 files changed +4
-21
lines changed Expand file tree Collapse file tree 2 files changed +4
-21
lines changed Original file line number Diff line number Diff line change 45
45
@__builtin__
46
46
def __get_c_unicodedata ():
47
47
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
51
49
global c_unicodedata_module
52
50
c_unicodedata_module = _cpython_unicodedata
53
51
return c_unicodedata_module
Original file line number Diff line number Diff line change 10
10
'error'
11
11
]
12
12
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__
You can’t perform that action at this time.
0 commit comments