Skip to content

Commit

Permalink
pythongh-108494: Fix Argument Clinic LIMITED_CAPI_REGEX
Browse files Browse the repository at this point in the history
Accept spaces in "#  define Py_LIMITED_API 0x030d0000".
  • Loading branch information
vstinner committed Mar 11, 2024
1 parent 113053a commit 5ea178c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tools/clinic/clinic.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@


# match '#define Py_LIMITED_API'
LIMITED_CAPI_REGEX = re.compile(r'#define +Py_LIMITED_API')
LIMITED_CAPI_REGEX = re.compile(r'# *define +Py_LIMITED_API')


class Sentinels(enum.Enum):
Expand Down

0 comments on commit 5ea178c

Please sign in to comment.