Skip to content

Commit fbb070c

Browse files
committed
Apply decorators
1 parent e01ba76 commit fbb070c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+284
-1
lines changed

Lib/test/clinic.test.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4080,13 +4080,14 @@ test_preprocessor_guarded_if_with_continuation_impl(PyObject *module)
40804080
#if CONDITION_E || CONDITION_F
40814081
#warning "different type of CPP directive"
40824082
/*[clinic input]
4083+
@permit_long_summary
40834084
test_preprocessor_guarded_if_e_or_f
40844085
Makes sure cpp.Monitor handles other directives than preprocessor conditionals.
40854086
[clinic start generated code]*/
40864087

40874088
static PyObject *
40884089
test_preprocessor_guarded_if_e_or_f_impl(PyObject *module)
4089-
/*[clinic end generated code: output=e49d24ff64ad88bc input=57b9c37f938bc4f1]*/
4090+
/*[clinic end generated code: output=e49d24ff64ad88bc input=3ca9ab4e883300ed]*/
40904091
#endif
40914092

40924093
/*[clinic input]

Modules/_abc.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -484,6 +484,7 @@ compute_abstract_methods(PyObject *self)
484484
#define COLLECTION_FLAGS (Py_TPFLAGS_SEQUENCE | Py_TPFLAGS_MAPPING)
485485

486486
/*[clinic input]
487+
@permit_long_summary
487488
_abc._abc_init
488489
489490
self: object
@@ -543,6 +544,7 @@ _abc__abc_init(PyObject *module, PyObject *self)
543544
}
544545

545546
/*[clinic input]
547+
@permit_long_summary
546548
_abc._abc_register
547549
548550
self: object
@@ -606,6 +608,7 @@ _abc__abc_register_impl(PyObject *module, PyObject *self, PyObject *subclass)
606608

607609

608610
/*[clinic input]
611+
@permit_long_summary
609612
_abc._abc_instancecheck
610613
611614
self: object
@@ -692,6 +695,7 @@ static int subclasscheck_check_registry(_abc_data *impl, PyObject *subclass,
692695
PyObject **result);
693696

694697
/*[clinic input]
698+
@permit_long_summary
695699
_abc._abc_subclasscheck
696700
697701
self: object

Modules/_bz2module.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -598,6 +598,7 @@ decompress(BZ2Decompressor *d, char *data, size_t len, Py_ssize_t max_length)
598598
}
599599

600600
/*[clinic input]
601+
@permit_long_docstring_body
601602
_bz2.BZ2Decompressor.decompress
602603
603604
data: Py_buffer

Modules/_codecsmodule.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ _codecs_unregister(PyObject *module, PyObject *search_function)
9292
}
9393

9494
/*[clinic input]
95+
@permit_long_summary
9596
_codecs.lookup
9697
encoding: str
9798
/

Modules/_ctypes/callproc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1787,6 +1787,7 @@ align_func(PyObject *self, PyObject *obj)
17871787

17881788

17891789
/*[clinic input]
1790+
@permit_long_summary
17901791
@critical_section obj
17911792
_ctypes.byref
17921793
obj: object(subclass_of="clinic_state()->PyCData_Type")

Modules/_curses_panel.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,7 @@ _curses_panel_panel_bottom_impl(PyCursesPanelObject *self)
360360
}
361361

362362
/*[clinic input]
363+
@permit_long_docstring_body
363364
_curses_panel.panel.hide
364365
365366
Hide the panel.

Modules/_cursesmodule.c

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1353,6 +1353,7 @@ _curses_window_bkgdset_impl(PyCursesWindowObject *self, PyObject *ch,
13531353
}
13541354

13551355
/*[clinic input]
1356+
@permit_long_docstring_body
13561357
_curses.window.border
13571358
13581359
ls: object(c_default="NULL") = _curses.ACS_VLINE
@@ -1589,6 +1590,7 @@ _curses_window_delch_impl(PyCursesWindowObject *self, int group_right_1,
15891590
}
15901591

15911592
/*[clinic input]
1593+
@permit_long_docstring_body
15921594
_curses.window.derwin
15931595
15941596
[
@@ -1669,6 +1671,7 @@ _curses_window_echochar_impl(PyCursesWindowObject *self, PyObject *ch,
16691671

16701672
#ifdef NCURSES_MOUSE_VERSION
16711673
/*[clinic input]
1674+
@permit_long_summary
16721675
_curses.window.enclose
16731676
16741677
y: int
@@ -1722,6 +1725,7 @@ curses_check_signals_on_input_error(PyCursesWindowObject *self,
17221725
}
17231726

17241727
/*[clinic input]
1728+
@permit_long_docstring_body
17251729
_curses.window.getch
17261730
17271731
[
@@ -1769,6 +1773,7 @@ _curses_window_getch_impl(PyCursesWindowObject *self, int group_right_1,
17691773
}
17701774

17711775
/*[clinic input]
1776+
@permit_long_docstring_body
17721777
_curses.window.getkey
17731778
17741779
[
@@ -2012,6 +2017,7 @@ _curses_window_hline_impl(PyCursesWindowObject *self, int group_left_1,
20122017
}
20132018

20142019
/*[clinic input]
2020+
@permit_long_docstring_body
20152021
_curses.window.insch
20162022
20172023
[
@@ -2062,6 +2068,7 @@ _curses_window_insch_impl(PyCursesWindowObject *self, int group_left_1,
20622068
}
20632069

20642070
/*[clinic input]
2071+
@permit_long_docstring_body
20652072
_curses.window.inch
20662073
20672074
[
@@ -2250,6 +2257,7 @@ _curses_window_insstr_impl(PyCursesWindowObject *self, int group_left_1,
22502257
}
22512258

22522259
/*[clinic input]
2260+
@permit_long_docstring_body
22532261
_curses.window.insnstr
22542262
22552263
[
@@ -2350,6 +2358,7 @@ _curses_window_insnstr_impl(PyCursesWindowObject *self, int group_left_1,
23502358
}
23512359

23522360
/*[clinic input]
2361+
@permit_long_docstring_body
23532362
_curses.window.is_linetouched
23542363
23552364
line: int
@@ -2376,6 +2385,7 @@ _curses_window_is_linetouched_impl(PyCursesWindowObject *self, int line)
23762385

23772386
#ifdef py_is_pad
23782387
/*[clinic input]
2388+
@permit_long_docstring_body
23792389
_curses.window.noutrefresh
23802390
23812391
[
@@ -2403,6 +2413,7 @@ _curses_window_noutrefresh_impl(PyCursesWindowObject *self,
24032413
/*[clinic end generated code: output=809a1f3c6a03e23e input=3e56898388cd739e]*/
24042414
#else
24052415
/*[clinic input]
2416+
@permit_long_docstring_body
24062417
_curses.window.noutrefresh
24072418
24082419
Mark for refresh but wait.
@@ -2447,6 +2458,7 @@ _curses_window_noutrefresh_impl(PyCursesWindowObject *self)
24472458
}
24482459

24492460
/*[clinic input]
2461+
@permit_long_docstring_body
24502462
_curses.window.overlay
24512463
24522464
destwin: object(type="PyCursesWindowObject *", subclass_of="clinic_state()->window_type")
@@ -2494,6 +2506,7 @@ _curses_window_overlay_impl(PyCursesWindowObject *self,
24942506
}
24952507

24962508
/*[clinic input]
2509+
@permit_long_docstring_body
24972510
_curses.window.overwrite
24982511
24992512
destwin: object(type="PyCursesWindowObject *", subclass_of="clinic_state()->window_type")
@@ -2610,6 +2623,7 @@ _curses_window_redrawln_impl(PyCursesWindowObject *self, int beg, int num)
26102623
}
26112624

26122625
/*[clinic input]
2626+
@permit_long_docstring_body
26132627
_curses.window.refresh
26142628
26152629
[
@@ -2694,6 +2708,7 @@ _curses_window_setscrreg_impl(PyCursesWindowObject *self, int top,
26942708
}
26952709

26962710
/*[clinic input]
2711+
@permit_long_docstring_body
26972712
_curses.window.subwin
26982713
26992714
[
@@ -2745,6 +2760,7 @@ _curses_window_subwin_impl(PyCursesWindowObject *self, int group_left_1,
27452760
}
27462761

27472762
/*[clinic input]
2763+
@permit_long_docstring_body
27482764
_curses.window.scroll
27492765
27502766
[
@@ -2777,6 +2793,7 @@ _curses_window_scroll_impl(PyCursesWindowObject *self, int group_right_1,
27772793
}
27782794

27792795
/*[clinic input]
2796+
@permit_long_docstring_body
27802797
_curses.window.touchline
27812798
27822799
start: int
@@ -3142,6 +3159,7 @@ _curses_beep_impl(PyObject *module)
31423159
NoArgNoReturnFunctionBody(beep)
31433160

31443161
/*[clinic input]
3162+
@permit_long_summary
31453163
_curses.can_change_color
31463164
31473165
Return True if the programmer can change the colors displayed by the terminal.
@@ -3174,6 +3192,7 @@ _curses_cbreak_impl(PyObject *module, int flag)
31743192
NoArgOrFlagNoReturnFunctionBody(cbreak, flag)
31753193

31763194
/*[clinic input]
3195+
@permit_long_docstring_body
31773196
_curses.color_content
31783197
31793198
color_number: color
@@ -3367,6 +3386,7 @@ _curses_erasechar_impl(PyObject *module)
33673386
}
33683387

33693388
/*[clinic input]
3389+
@permit_long_docstring_body
33703390
_curses.flash
33713391
33723392
Flash the screen.
@@ -3997,6 +4017,7 @@ NoArgTrueFalseFunctionBody(isendwin)
39974017

39984018
#ifdef HAVE_CURSES_IS_TERM_RESIZED
39994019
/*[clinic input]
4020+
@permit_long_summary
40004021
_curses.is_term_resized
40014022
40024023
nlines: int
@@ -4063,6 +4084,7 @@ _curses_killchar_impl(PyObject *module)
40634084
}
40644085

40654086
/*[clinic input]
4087+
@permit_long_docstring_body
40664088
_curses.longname
40674089
40684090
Return the terminfo long name field describing the current terminal.
@@ -4126,6 +4148,7 @@ _curses_mouseinterval_impl(PyObject *module, int interval)
41264148
}
41274149

41284150
/*[clinic input]
4151+
@permit_long_summary
41294152
_curses.mousemask
41304153
41314154
newmask: unsigned_long(bitwise=True)
@@ -4523,6 +4546,7 @@ _curses_raw_impl(PyObject *module, int flag)
45234546
NoArgOrFlagNoReturnFunctionBody(raw, flag)
45244547

45254548
/*[clinic input]
4549+
@permit_long_summary
45264550
_curses.reset_prog_mode
45274551
45284552
Restore the terminal to "program" mode, as previously saved by def_prog_mode().
@@ -4534,6 +4558,7 @@ _curses_reset_prog_mode_impl(PyObject *module)
45344558
NoArgNoReturnFunctionBody(reset_prog_mode)
45354559

45364560
/*[clinic input]
4561+
@permit_long_summary
45374562
_curses.reset_shell_mode
45384563
45394564
Restore the terminal to "shell" mode, as previously saved by def_shell_mode().
@@ -4595,6 +4620,7 @@ _curses_resizeterm_impl(PyObject *module, short nlines, short ncols)
45954620

45964621
#ifdef HAVE_CURSES_RESIZE_TERM
45974622
/*[clinic input]
4623+
@permit_long_docstring_body
45984624
_curses.resize_term
45994625
46004626
nlines: short
@@ -4733,6 +4759,7 @@ _curses_termattrs_impl(PyObject *module)
47334759
NoArgReturnIntFunctionBody(termattrs)
47344760

47354761
/*[clinic input]
4762+
@permit_long_summary
47364763
_curses.termname
47374764
47384765
Return the value of the environment variable TERM, truncated to 14 characters.
@@ -5000,6 +5027,7 @@ _curses_unget_wch(PyObject *module, PyObject *ch)
50005027

50015028
#ifdef HAVE_CURSES_USE_ENV
50025029
/*[clinic input]
5030+
@permit_long_docstring_body
50035031
_curses.use_env
50045032
50055033
flag: bool

Modules/_datetimemodule.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3293,6 +3293,7 @@ datetime_date_today_impl(PyTypeObject *type)
32933293
}
32943294

32953295
/*[clinic input]
3296+
@permit_long_docstring_body
32963297
@classmethod
32973298
datetime.date.fromtimestamp
32983299
@@ -4866,6 +4867,7 @@ datetime_time_isoformat_impl(PyDateTime_Time *self, const char *timespec)
48664867
}
48674868

48684869
/*[clinic input]
4870+
@permit_long_docstring_body
48694871
datetime.time.strftime
48704872
48714873
format: unicode
@@ -5682,6 +5684,7 @@ datetime_datetime_utcnow_impl(PyTypeObject *type)
56825684
}
56835685

56845686
/*[clinic input]
5687+
@permit_long_docstring_body
56855688
@classmethod
56865689
datetime.datetime.fromtimestamp
56875690
@@ -5759,6 +5762,7 @@ datetime_datetime_utcfromtimestamp_impl(PyTypeObject *type,
57595762
}
57605763

57615764
/*[clinic input]
5765+
@permit_long_summary
57625766
@classmethod
57635767
datetime.datetime.strptime
57645768

Modules/_functoolsmodule.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1039,6 +1039,8 @@ _functools_cmp_to_key_impl(PyObject *module, PyObject *mycmp)
10391039
/* reduce (used to be a builtin) ********************************************/
10401040

10411041
/*[clinic input]
1042+
@permit_long_summary
1043+
@permit_long_docstring_body
10421044
_functools.reduce
10431045
10441046
function as func: object

Modules/_gdbmmodule.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,7 @@ gdbm_ass_sub(PyObject *op, PyObject *v, PyObject *w)
377377
}
378378

379379
/*[clinic input]
380+
@permit_long_summary
380381
@critical_section
381382
_gdbm.gdbm.setdefault
382383

0 commit comments

Comments
 (0)