[pypy-commit] pypy utf8-unicode2: Typo

waedt noreply at buildbot.pypy.org
Sat Aug 9 11:05:10 CEST 2014


Author: Tyler Wade <wayedt at gmail.com>
Branch: utf8-unicode2
Changeset: r72728:da24f2c93b5b
Date: 2014-08-09 02:43 -0500
http://bitbucket.org/pypy/pypy/changeset/da24f2c93b5b/

Log:	Typo

diff --git a/pypy/interpreter/utf8.py b/pypy/interpreter/utf8.py
--- a/pypy/interpreter/utf8.py
+++ b/pypy/interpreter/utf8.py
@@ -171,7 +171,7 @@
 
     def __getitem__(self, char_pos):
         if not isinstance(char_pos, int):
-            raise TyperError("string index must be an integer, not %r" %
+            raise TypeError("string index must be an integer, not %r" %
                               type(char_pos))
         # This if statement is needed for [-1:0] to slice correctly
         if char_pos >= self._len:


More information about the pypy-commit mailing list