[Python-checkins] r63426 - in python/trunk: Lib/test/test_py3kwarn.py Python/bltinmodule.c
benjamin.peterson
python-checkins at python.org
Sat May 17 21:51:10 CEST 2008
Author: benjamin.peterson
Date: Sat May 17 21:51:10 2008
New Revision: 63426
Log:
fix spelling
Modified:
python/trunk/Lib/test/test_py3kwarn.py
python/trunk/Python/bltinmodule.c
Modified: python/trunk/Lib/test/test_py3kwarn.py
==============================================================================
--- python/trunk/Lib/test/test_py3kwarn.py (original)
+++ python/trunk/Lib/test/test_py3kwarn.py Sat May 17 21:51:10 2008
@@ -133,7 +133,7 @@
'Also, note the returned format is different.'
with catch_warning() as w:
self.assertWarning(oct(Spam()), w, expected)
- expected = 'In 3.x, hex() converts the result of __index__ to hexidecimal.'
+ expected = 'In 3.x, hex() converts the result of __index__ to hexadecimal.'
with catch_warning() as w:
self.assertWarning(hex(Spam()), w, expected)
Modified: python/trunk/Python/bltinmodule.c
==============================================================================
--- python/trunk/Python/bltinmodule.c (original)
+++ python/trunk/Python/bltinmodule.c Sat May 17 21:51:10 2008
@@ -1186,7 +1186,7 @@
if (nb != NULL && nb->nb_hex != NULL) {
if (PyErr_WarnPy3k("In 3.x, hex() converts "
- "the result of __index__ to hexidecimal.",
+ "the result of __index__ to hexadecimal.",
1) < 0)
return NULL;
res = (*nb->nb_hex)(v);
More information about the Python-checkins
mailing list