Skip to content

Commit ab22349

Browse files
committed
Don't break when under 80 chars
Signed-off-by: Georgios Alexopoulos <grgalex@ba.uoa.gr>
1 parent 2290aa4 commit ab22349

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

Modules/_ctypes/_ctypes.c

+2-6
Original file line numberDiff line numberDiff line change
@@ -996,9 +996,7 @@ CDataType_in_dll_impl(PyObject *type, PyTypeObject *cls, PyObject *dll,
996996
}
997997
#endif
998998
#undef USE_DLERROR
999-
PyErr_Format(PyExc_ValueError,
1000-
"symbol '%s' not found",
1001-
name);
999+
PyErr_Format(PyExc_ValueError, "symbol '%s' not found", name);
10021000
return NULL;
10031001
}
10041002

@@ -3822,9 +3820,7 @@ PyCFuncPtr_FromDll(PyTypeObject *type, PyObject *args, PyObject *kwds)
38223820
PyErr_Clear();
38233821
}
38243822
#endif
3825-
PyErr_Format(PyExc_AttributeError,
3826-
"function '%s' not found",
3827-
name);
3823+
PyErr_Format(PyExc_AttributeError, "function '%s' not found", name);
38283824
Py_DECREF(ftuple);
38293825
return NULL;
38303826
}

Modules/_ctypes/callproc.c

+1-3
Original file line numberDiff line numberDiff line change
@@ -1654,9 +1654,7 @@ static PyObject *py_dl_sym(PyObject *self, PyObject *args)
16541654
}
16551655
#endif
16561656
#undef USE_DLERROR
1657-
PyErr_Format(PyExc_OSError,
1658-
"symbol '%s' not found",
1659-
name);
1657+
PyErr_Format(PyExc_OSError, "symbol '%s' not found", name);
16601658
return NULL;
16611659
}
16621660
#endif

0 commit comments

Comments
 (0)