Skip to content

Commit 28b193e

Browse files
committed
Fix docstring spacing consistency in both Python and C files
1 parent 87b4d50 commit 28b193e

3 files changed

Lines changed: 8 additions & 2 deletions

File tree

Lib/_pydatetime.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1073,6 +1073,7 @@ def fromisocalendar(cls, year, week, day):
10731073
@classmethod
10741074
def strptime(cls, date_string, format):
10751075
"""Parse string according to the given date format (like time.strptime()).
1076+
10761077
For a list of supported format codes, see the documentation:
10771078
https://docs.python.org/3/library/datetime.html#format-codes
10781079
"""
@@ -1464,6 +1465,7 @@ def __new__(cls, hour=0, minute=0, second=0, microsecond=0, tzinfo=None, *, fold
14641465

14651466
def strptime(cls, date_string, format):
14661467
"""Parse string according to the given time format (like time.strptime()).
1468+
14671469
For a list of supported format codes, see the documentation:
14681470
https://docs.python.org/3/library/datetime.html#format-codes
14691471
"""
@@ -1659,6 +1661,7 @@ def fromisoformat(cls, time_string):
16591661
def strftime(self, format):
16601662
"""Format using strftime(). The date part of the timestamp passed
16611663
to underlying strftime should not be used.
1664+
16621665
For a list of supported format codes, see the documentation:
16631666
https://docs.python.org/3/library/datetime.html#format-codes
16641667
"""
@@ -2210,6 +2213,7 @@ def __str__(self):
22102213
@classmethod
22112214
def strptime(cls, date_string, format):
22122215
"""Parse string according to the given time format (like time.strptime()).
2216+
22132217
For a list of supported format codes, see the documentation:
22142218
https://docs.python.org/3/library/datetime.html#format-codes
22152219
"""

Modules/_datetimemodule.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4900,13 +4900,14 @@ datetime.time.strftime
49004900
Format using strftime().
49014901
49024902
The date part of the timestamp passed to underlying strftime should not be used.
4903+
49034904
For a list of supported format codes, see the documentation:
49044905
https://docs.python.org/3/library/datetime.html#format-codes
49054906
[clinic start generated code]*/
49064907

49074908
static PyObject *
49084909
datetime_time_strftime_impl(PyDateTime_Time *self, PyObject *format)
4909-
/*[clinic end generated code: output=10f65af20e2a78c7 input=9d15aeed1527935a]*/
4910+
/*[clinic end generated code: output=10f65af20e2a78c7 input=c4a5bbecd798654b]*/
49104911
{
49114912
PyObject *result;
49124913
PyObject *tuple;

Modules/clinic/_datetimemodule.c.h

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)