diff options
Diffstat (limited to 'pygments/token.py')
-rw-r--r-- | pygments/token.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pygments/token.py b/pygments/token.py index 813bc9a2..146045df 100644 --- a/pygments/token.py +++ b/pygments/token.py @@ -1,4 +1,4 @@ -# -*- coding: utf-8 -*- + # -*- coding: utf-8 -*- """ pygments.token ~~~~~~~~~~~~~~ @@ -28,7 +28,7 @@ class _TokenType(tuple): def __init__(self, *args, **kwargs): super(_TokenType, self).__init__(*args, **kwargs) - self.subtokens = set() + self.subtypes = set() def __contains__(self, val): return self is val or ( @@ -41,7 +41,7 @@ class _TokenType(tuple): return tuple.__getattribute__(self, val) new = _TokenType(self + (val,)) setattr(self, val, new) - self.subtokens.add(new) + self.subtypes.add(new) new.parent = self return new |