diff options
author | Georg Brandl <georg@python.org> | 2010-08-18 17:37:49 +0200 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2010-08-18 17:37:49 +0200 |
commit | e051d8dc8f02e49cefbaaa030c14c9531951a678 (patch) | |
tree | 700197537ed269bca0f0e8cef851c00c82989c51 /pygments/token.py | |
parent | eb116405a7d23456589371322e52f8430a8cde0d (diff) | |
download | pygments-e051d8dc8f02e49cefbaaa030c14c9531951a678.tar.gz |
Performance improvements in the HTML formatter (#523).
Diffstat (limited to 'pygments/token.py')
-rw-r--r-- | pygments/token.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/pygments/token.py b/pygments/token.py index 4815ddfb..1f513923 100644 --- a/pygments/token.py +++ b/pygments/token.py @@ -40,9 +40,6 @@ class _TokenType(tuple): new.parent = self return new - def __hash__(self): - return hash(tuple(self)) - def __repr__(self): return 'Token' + (self and '.' or '') + '.'.join(self) |