mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
bpo-39573: Clean up modules and headers to use Py_IS_TYPE() function (GH-18521)
This commit is contained in:
parent
a7847590f0
commit
1b55b65638
33 changed files with 56 additions and 56 deletions
|
@ -550,7 +550,7 @@ gettmarg(PyObject *args, struct tm *p, const char *format)
|
|||
p->tm_wday = (p->tm_wday + 1) % 7;
|
||||
p->tm_yday--;
|
||||
#ifdef HAVE_STRUCT_TM_TM_ZONE
|
||||
if (Py_TYPE(args) == &StructTimeType) {
|
||||
if (Py_IS_TYPE(args, &StructTimeType)) {
|
||||
PyObject *item;
|
||||
item = PyStructSequence_GET_ITEM(args, 9);
|
||||
if (item != Py_None) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue