Skip to content

Commit 0f10f7d

Browse files
author
Erlend E. Aasland
committed
Update clinic
1 parent 12bf771 commit 0f10f7d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Modules/_sre.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ class _sre.SRE_Pattern "PatternObject *" "get_sre_module_state_by_type(tp)->Patt
279279
class _sre.SRE_Match "MatchObject *" "get_sre_module_state_by_type(tp)->Match_Type"
280280
class _sre.SRE_Scanner "ScannerObject *" "get_sre_module_state_by_type(tp)->Scanner_Type"
281281
[clinic start generated code]*/
282-
/*[clinic end generated code: output=da39a3ee5e6b4b0d input=9f2e869a208f635c]*/
282+
/*[clinic end generated code: output=da39a3ee5e6b4b0d input=8b48770d8db721b4]*/
283283

284284
/*[clinic input]
285285
_sre.getcodesize -> int
@@ -2841,7 +2841,7 @@ do { \
28412841
goto error; \
28422842
int res = PyModule_AddObjectRef(module, name, o); \
28432843
Py_DECREF(o); \
2844-
if (res <) { \
2844+
if (res < 0) { \
28452845
goto error; \
28462846
} \
28472847
} while (0)
@@ -2850,8 +2850,6 @@ static int
28502850
sre_exec(PyObject *m)
28512851
{
28522852
_sremodulestate *state;
2853-
PyObject* d;
2854-
PyObject* x;
28552853

28562854
/* Create heap types */
28572855
state = get_sre_module_state(m);

0 commit comments

Comments
 (0)