summaryrefslogtreecommitdiff
path: root/pygments/token.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-08-18 17:37:49 +0200
committerGeorg Brandl <georg@python.org>2010-08-18 17:37:49 +0200
commite051d8dc8f02e49cefbaaa030c14c9531951a678 (patch)
tree700197537ed269bca0f0e8cef851c00c82989c51 /pygments/token.py
parenteb116405a7d23456589371322e52f8430a8cde0d (diff)
downloadpygments-e051d8dc8f02e49cefbaaa030c14c9531951a678.tar.gz
Performance improvements in the HTML formatter (#523).
Diffstat (limited to 'pygments/token.py')
-rw-r--r--pygments/token.py3
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)