8000 reconsider capi name · python/cpython@a426e8f · GitHub
[go: up one dir, main page]

Skip to content

Commit a426e8f

Browse files
committed
reconsider capi name
1 parent e9f6f33 commit a426e8f

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

Modules/_datetimemodule.c

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1054,16 +1054,16 @@ new_datetime_ex(int year, int month, int day, int hour, int minute,
10541054
}
10551055

10561056
static PyObject *
1057-
new_datetime_capi(int year, int month, int day, int hour, int minute,
1058-
int second, int usecond, PyObject *tzinfo,
1059-
PyTypeObject *type)
1057+
new_datetime_nofold_capi(int year, int month, int day, int hour, int minute,
1058+
int second, int usecond, PyObject *tzinfo,
1059+
PyTypeObject *type)
10601060
{
10611061
return new_datetime_ex(year, month, day, hour, minute, second,
10621062
usecond, tzinfo, type);
10631063
}
10641064

10651065
static PyObject *
1066-
new_datetime_fold_capi(int year, int month, int day, int hour, int minute,
1066+
new_datetime_capi(int year, int month, int day, int hour, int minute,
10671067
int second, int usecond, PyObject *tzinfo, int fold,
10681068
PyTypeObject *type)
10691069
{
@@ -1169,15 +1169,15 @@ new_time_ex2(int hour, int minute, int second, int usecond,
11691169
}
11701170

11711171
static PyObject *
1172-
new_time_capi(int hour, int minute, int second, int usecond,
1173-
PyObject *tzinfo, PyTypeObject *type)
1172+
new_time_nofold_capi(int hour, int minute, int second, int usecond,
1173+
PyObject *tzinfo, PyTypeObject *type)
11741174
{
11751175
return new_time_ex2(hour, minute, second, usecond, tzinfo, 0, type);
11761176
}
11771177

11781178
static PyObject *
1179-
new_time_fold_capi(int hour, int minute, int second, int usecond,
1180-
PyObject *tzinfo, int fold, PyTypeObject *type)
1179+
new_time_capi(int hour, int minute, int second, int usecond,
1180+
PyObject *tzinfo, int fold, PyTypeObject *type)
11811181
{
11821182
return new_time_ex2(hour, minute, second, usecond, tzinfo, fold, type);
11831183
}
@@ -6773,14 +6773,14 @@ get_datetime_capi(void)
67736773
capi->DeltaType = &PyDateTime_DeltaType;
67746774
capi->TZInfoType = &PyDateTime_TZInfoType;
67756775
capi->Date_FromDate = new_date_capi;
6776-
capi->DateTime_FromDateAndTime = new_datetime_capi;
6777-
capi->Time_FromTime = new_time_capi;
6776+
capi->DateTime_FromDateAndTime = new_datetime_nofold_capi;
6777+
capi->Time_FromTime = new_time_nofold_capi;
67786778
capi->Delta_FromDelta = new_delta_capi;
67796779
capi->TimeZone_FromTimeZone = new_timezone_capi;
67806780
capi->DateTime_FromTimestamp = datetime_fromtimestamp_capi;
67816781
capi->Date_FromTimestamp = datetime_date_fromtimestamp_capi;
6782-
capi->DateTime_FromDateAndTimeAndFold = new_datetime_fold_capi;
6783-
capi->Time_FromTimeAndFold = new_time_fold_capi;
6782+
capi->DateTime_FromDateAndTimeAndFold = new_datetime_capi;
6783+
capi->Time_FromTimeAndFold = new_time_capi;
67846784
// Make sure this function is called after utc has
67856785
// been initialized.
67866786
datetime_state *st = STATIC_STATE();

0 commit comments

Comments
 (0)
0