fix spelling

This commit is contained in:
Benjamin Peterson 2008-05-17 19:51:10 +00:00
parent 79a922d6df
commit d7943cb71d
2 changed files with 2 additions and 2 deletions

View File

@ -133,7 +133,7 @@ class TestPy3KWarnings(unittest.TestCase):
'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)

View File

@ -1186,7 +1186,7 @@ builtin_hex(PyObject *self, PyObject *v)
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);