diff options
author | blackbird <devnull@localhost> | 2007-01-20 18:50:42 +0100 |
---|---|---|
committer | blackbird <devnull@localhost> | 2007-01-20 18:50:42 +0100 |
commit | a00e3ff778ec6c0c83503d492381a8ef00782e89 (patch) | |
tree | 1f38aa8433f9bce2c35e47e7e4bbdf070090fdd1 /pygments/token.py | |
parent | 01bdff3b2ae2a0cfe0f47cbd2ba731634975dabe (diff) | |
download | pygments-a00e3ff778ec6c0c83503d492381a8ef00782e89.tar.gz |
[svn] subtokens -> subtypes
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 |