diff options
author | Benjamin Peterson <benjamin@python.org> | 2008-05-17 19:51:10 +0000 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2008-05-17 19:51:10 +0000 |
commit | d7943cb71d51bbf0e2ac715b08b8da2208d2800c (patch) | |
tree | 10dc34fe5400db1570ec731572fa3d7043f614c6 | |
parent | 79a922d6df18e0c0e508905aebc8f4fa28052aac (diff) | |
download | cpython-git-d7943cb71d51bbf0e2ac715b08b8da2208d2800c.tar.gz |
fix spelling
-rw-r--r-- | Lib/test/test_py3kwarn.py | 2 | ||||
-rw-r--r-- | Python/bltinmodule.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_py3kwarn.py b/Lib/test/test_py3kwarn.py index e6d38f2ca7..07d5b3465a 100644 --- a/Lib/test/test_py3kwarn.py +++ b/Lib/test/test_py3kwarn.py @@ -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) diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index 5c30e03fcf..45f4081aa0 100644 --- a/Python/bltinmodule.c +++ b/Python/bltinmodule.c @@ -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); |