summaryrefslogtreecommitdiffstats
path: root/Objects/unicodeobject.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2020-10-09 11:14:37 (GMT)
committerGitHub <noreply@github.com>2020-10-09 11:14:37 (GMT)
commite2ec0b27c02a158d0007c11dcc1f2d7a95948712 (patch)
treeb3af19afbbe88789b8f9af7ba9ffd91e87c1e5c1 /Objects/unicodeobject.c
parent48f305fd122080a9181cbda33bdb42ea36a0136f (diff)
downloadcpython-e2ec0b27c02a158d0007c11dcc1f2d7a95948712.zip
cpython-e2ec0b27c02a158d0007c11dcc1f2d7a95948712.tar.gz
cpython-e2ec0b27c02a158d0007c11dcc1f2d7a95948712.tar.bz2
bpo-41974: Remove complex.__float__, complex.__floordiv__, etc (GH-22593)
Remove complex special methods __int__, __float__, __floordiv__, __mod__, __divmod__, __rfloordiv__, __rmod__ and __rdivmod__ which always raised a TypeError.
Diffstat (limited to 'Objects/unicodeobject.c')
-rw-r--r--Objects/unicodeobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index 6ae06a5..01e5c72 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -14839,7 +14839,7 @@ wrongtype:
break;
default:
PyErr_Format(PyExc_TypeError,
- "%%%c format: a number is required, "
+ "%%%c format: a real number is required, "
"not %.200s",
type, Py_TYPE(v)->tp_name);
break;