Skip to content

Commit fc16ab9

Browse files
committed
Remove unnecessary check
1 parent f8fb254 commit fc16ab9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Objects/descrobject.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1812,9 +1812,7 @@ property_init_impl(propertyobject *self, PyObject *fget, PyObject *fset,
18121812
a non-None object with incremented ref counter */
18131813

18141814
if (Py_IS_TYPE(self, &PyProperty_Type)) {
1815-
if (prop_doc != NULL && prop_doc != Py_None) {
1816-
Py_XSETREF(self->prop_doc, prop_doc);
1817-
}
1815+
Py_XSETREF(self->prop_doc, prop_doc);
18181816
} else {
18191817
/* If this is a property subclass, put __doc__
18201818
in dict of the subclass instance instead,

0 commit comments

Comments
 (0)