summaryrefslogtreecommitdiff
path: root/pygments/token.py
diff options
context:
space:
mode:
authorblackbird <devnull@localhost>2007-01-20 18:50:42 +0100
committerblackbird <devnull@localhost>2007-01-20 18:50:42 +0100
commita00e3ff778ec6c0c83503d492381a8ef00782e89 (patch)
tree1f38aa8433f9bce2c35e47e7e4bbdf070090fdd1 /pygments/token.py
parent01bdff3b2ae2a0cfe0f47cbd2ba731634975dabe (diff)
downloadpygments-a00e3ff778ec6c0c83503d492381a8ef00782e89.tar.gz
[svn] subtokens -> subtypes
Diffstat (limited to 'pygments/token.py')
-rw-r--r--pygments/token.py6
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