mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
gh-108494: Fix Argument Clinic LIMITED_CAPI_REGEX (#116610)
Accept spaces in "# define Py_LIMITED_API 0x030d0000".
This commit is contained in:
parent
06e29a224f
commit
2b67fc57f6
13 changed files with 35 additions and 45 deletions
|
|
@ -66,8 +66,9 @@
|
|||
#
|
||||
|
||||
|
||||
# match '#define Py_LIMITED_API'
|
||||
LIMITED_CAPI_REGEX = re.compile(r'#define +Py_LIMITED_API')
|
||||
# Match '#define Py_LIMITED_API'.
|
||||
# Match '# define Py_LIMITED_API 0x030d0000' (without the version).
|
||||
LIMITED_CAPI_REGEX = re.compile(r'# *define +Py_LIMITED_API')
|
||||
|
||||
|
||||
class Sentinels(enum.Enum):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue