]> granicus.if.org Git - python/commitdiff
fix spelling
authorBenjamin Peterson <benjamin@python.org>
Sat, 17 May 2008 19:51:10 +0000 (19:51 +0000)
committerBenjamin Peterson <benjamin@python.org>
Sat, 17 May 2008 19:51:10 +0000 (19:51 +0000)
Lib/test/test_py3kwarn.py
Python/bltinmodule.c

index e6d38f2ca746d0279c626f607d2f3d7d364c5ce0..07d5b3465ab9d1c68f1cf9d930be00beaddc710c 100644 (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)
 
index 5c30e03fcf0ee5a24db11318d1aff87d27162a12..45f4081aa0104ad9825d551aa1ec358723e296b4 100644 (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);