summaryrefslogtreecommitdiff
path: root/Objects/bytesobject.c
diff options
context:
space:
mode:
Diffstat (limited to 'Objects/bytesobject.c')
-rw-r--r--Objects/bytesobject.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/Objects/bytesobject.c b/Objects/bytesobject.c
index b935375e23..ec03233ba3 100644
--- a/Objects/bytesobject.c
+++ b/Objects/bytesobject.c
@@ -3282,15 +3282,13 @@ bytes_methods[] = {
};
static PyObject *
-bytes_mod(PyObject *self, PyObject *args)
+bytes_mod(PyObject *self, PyObject *arg)
{
- if (self == NULL || !PyBytes_Check(self)) {
- PyErr_BadInternalCall();
- return NULL;
+ if (!PyBytes_Check(self)) {
+ Py_RETURN_NOTIMPLEMENTED;
}
-
return _PyBytes_FormatEx(PyBytes_AS_STRING(self), PyBytes_GET_SIZE(self),
- args, 0);
+ arg, 0);
}
static PyNumberMethods bytes_as_number = {