Skip to content

Commit 574577a

Browse files
committed
adapt stdlib patches
1 parent b08c34e commit 574577a

File tree

4 files changed

+7
-12
lines changed

4 files changed

+7
-12
lines changed

graalpython/lib-python/3/_collections_abc.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,10 @@ async def _coro(): pass
6262
# _coro.close() # Prevent ResourceWarning
6363
del _coro
6464
## asynchronous generator ##
65-
## Truffle todo: This should be reverted, once async generators are supported.
66-
## Temporary fix.
67-
#async def _ag(): yield
68-
#_ag = _ag()
69-
#async_generator = type(_ag)
70-
#del _ag
65+
async def _ag(): yield
66+
_ag = _ag()
67+
async_generator = type(_ag)
68+
del _ag
7169

7270

7371
### ONE-TRICK PONIES ###

graalpython/lib-python/3/distutils/sysconfig.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,4 +536,3 @@ def get_config_var(name):
536536
# Truffle: import our overrides
537537
from distutils.sysconfig_graalpython import *
538538
from distutils.sysconfig_graalpython import _config_vars # needed by setuptools
539-
from distutils.sysconfig_graalpython import _variable_rx # read_setup_file()

graalpython/lib-python/3/distutils/sysconfig_graalpython.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,3 @@ def customize_compiler(compiler):
203203
archiver=archiver)
204204

205205
compiler.shared_lib_extension = shlib_suffix
206-
207-
208-
from .sysconfig_cpython import (
209-
parse_makefile, _variable_rx, expand_makefile_vars)

graalpython/lib-python/3/enum.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,9 @@ def __members__(cls):
340340
is a read-only view of the internal mapping.
341341
342342
"""
343-
return MappingProxyType(cls._member_map_)
343+
# Truffle change
344+
# return MappingProxyType(cls._member_map_)
345+
return dict(cls._member_map_)
344346

345347
def __repr__(cls):
346348
return "<enum %r>" % cls.__name__

0 commit comments

Comments
 (0)