summaryrefslogtreecommitdiffstats
path: root/Objects/complexobject.c
diff options
context:
space:
mode:
Diffstat (limited to 'Objects/complexobject.c')
-rw-r--r--Objects/complexobject.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/Objects/complexobject.c b/Objects/complexobject.c
index c074aee..3c26b5b2 100644
--- a/Objects/complexobject.c
+++ b/Objects/complexobject.c
@@ -418,6 +418,11 @@ complex_divmod(PyComplexObject *v, PyComplexObject *w)
{
Py_complex div, mod;
PyObject *d, *m, *z;
+
+ if (PyErr_Warn(PyExc_DeprecationWarning,
+ "complex divmod() and // are deprecated") < 0)
+ return NULL;
+
errno = 0;
div = c_quot(v->cval,w->cval); /* The raw divisor value. */
if (errno == EDOM) {