Skip to content

Commit 7cc3ecd

Browse files
committed
import the cext function once
1 parent 3686915 commit 7cc3ecd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graalpython/lib-graalpython/memoryview.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@
3838
# SOFTWARE.
3939

4040
# memoryview is mainly implemented in C
41+
from python_cext import PyTruffle_SetAttr
4142

4243

4344
def __memoryview_init(self, *args, **kwargs):
4445
import _memoryview
45-
from python_cext import PyTruffle_SetAttr
4646
# NOTE: DO NOT CHANGE THE NAME OF PROPERTY '__c_memoryview'
4747
# it is also referenced in native code and Java code
4848
if args and isinstance(args[0], _memoryview.nativememoryview):

0 commit comments

Comments
 (0)