remove __getitem__ from Token

This commit is contained in:
Dave Halter
2014-02-25 17:03:56 +01:00
parent 66aca8eba1
commit 761c28ef00
3 changed files with 14 additions and 39 deletions
+1 -8
View File
@@ -12,14 +12,7 @@ from jedi._compatibility import unicode
from jedi.parser.tokenize import Token
class TokenNoCompat(Token):
__slots__ = ()
def __getitem__(self, key):
raise NotImplementedError("Compatibility only for basic token.")
class TokenDocstring(TokenNoCompat):
class TokenDocstring(Token):
"""A string token that is a docstring.
as_string() will clean the token representing the docstring.