File tree 1 file changed +4
-4
lines changed 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -5136,9 +5136,9 @@ static PyObject *
5136
5136
datetime_utcnow (PyObject * cls , PyObject * dummy )
5137
5137
{
5138
5138
if (PyErr_WarnEx (PyExc_DeprecationWarning ,
5139
- "datetime.utcnow() is deprecated and scheduled for removal in a "
5139
+ "datetime.datetime. utcnow() is deprecated and scheduled for removal in a "
5140
5140
"future version. Use timezone-aware objects to represent datetimes "
5141
- "in UTC: datetime.now(datetime.UTC)." , 1 ))
5141
+ "in UTC: datetime.datetime. now(datetime.UTC)." , 1 ))
5142
5142
{
5143
5143
return NULL ;
5144
5144
}
@@ -5179,9 +5179,9 @@ static PyObject *
5179
5179
datetime_utcfromtimestamp (PyObject * cls , PyObject * args )
5180
5180
{
5181
5181
if (PyErr_WarnEx (PyExc_DeprecationWarning ,
5182
- "datetime.utcfromtimestamp() is deprecated and scheduled for removal "
5182
+ "datetime.datetime. utcfromtimestamp() is deprecated and scheduled for removal "
5183
5183
"in a future version. Use timezone-aware objects to represent "
5184
- "datetimes in UTC: datetime.fromtimestamp(timestamp, datetime.UTC)." , 1 ))
5184
+ "datetimes in UTC: datetime.datetime. fromtimestamp(timestamp, datetime.UTC)." , 1 ))
5185
5185
{
5186
5186
return NULL ;
5187
5187
}
You can’t perform that action at this time.
0 commit comments