Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5ce595c

Browse filesBrowse files
committed
Don't use self while it's NULL
1 parent b2fddd8 commit 5ce595c
Copy full SHA for 5ce595c

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎Modules/_ctypes/cfield.c

Copy file name to clipboardExpand all lines: Modules/_ctypes/cfield.c
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ PyCField_new_impl(PyTypeObject *type, PyObject *name, PyObject *proto,
9696
}
9797
if (info == NULL) {
9898
PyErr_Format(PyExc_TypeError,
99-
"type of field %R must be a C type", self->name);
99+
"type of field %R must be a C type", name);
100100
goto error;
101101
}
102102
assert(byte_size == info->size);

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.