summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorEthan Furman <ethan@stoneleaf.us>2014-01-12 16:42:35 (GMT)
committerEthan Furman <ethan@stoneleaf.us>2014-01-12 16:42:35 (GMT)
commita70805e1fa592076cc1188a62fbf35b6b863c430 (patch)
treed64863f91486205838cbce3eb1516317c6d6e552 /Objects
parent61dab6e3fa2f40454f29dcee9477bc52a049965e (diff)
downloadcpython-a70805e1fa592076cc1188a62fbf35b6b863c430.zip
cpython-a70805e1fa592076cc1188a62fbf35b6b863c430.tar.gz
cpython-a70805e1fa592076cc1188a62fbf35b6b863c430.tar.bz2
Issue19995: fixed typo; switched from test.support.check_warnings to assertWarns
Diffstat (limited to 'Objects')
-rw-r--r--Objects/unicodeobject.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index c8370bd..1ce10cf 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -14005,7 +14005,7 @@ mainformatlong(PyObject *v,
goto wrongtype;
/* make sure number is a type of integer */
- /* if not, issue depracation warning for now */
+ /* if not, issue deprecation warning for now */
if (!PyLong_Check(v)) {
if (type == 'o' || type == 'x' || type == 'X') {
iobj = PyNumber_Index(v);
@@ -14103,7 +14103,7 @@ formatchar(PyObject *v)
PyObject *iobj;
long x;
/* make sure number is a type of integer */
- /* if not, issue depracation warning for now */
+ /* if not, issue deprecation warning for now */
if (!PyLong_Check(v)) {
iobj = PyNumber_Index(v);
if (iobj == NULL) {