Kaydet (Commit) d7943cb7 authored tarafından Benjamin Peterson's avatar Benjamin Peterson

fix spelling

üst 79a922d6
...@@ -133,7 +133,7 @@ class TestPy3KWarnings(unittest.TestCase): ...@@ -133,7 +133,7 @@ class TestPy3KWarnings(unittest.TestCase):
'Also, note the returned format is different.' 'Also, note the returned format is different.'
with catch_warning() as w: with catch_warning() as w:
self.assertWarning(oct(Spam()), w, expected) 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: with catch_warning() as w:
self.assertWarning(hex(Spam()), w, expected) self.assertWarning(hex(Spam()), w, expected)
......
...@@ -1186,7 +1186,7 @@ builtin_hex(PyObject *self, PyObject *v) ...@@ -1186,7 +1186,7 @@ builtin_hex(PyObject *self, PyObject *v)
if (nb != NULL && nb->nb_hex != NULL) { if (nb != NULL && nb->nb_hex != NULL) {
if (PyErr_WarnPy3k("In 3.x, hex() converts " if (PyErr_WarnPy3k("In 3.x, hex() converts "
"the result of __index__ to hexidecimal.", "the result of __index__ to hexadecimal.",
1) < 0) 1) < 0)
return NULL; return NULL;
res = (*nb->nb_hex)(v); res = (*nb->nb_hex)(v);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment