summaryrefslogtreecommitdiff
path: root/pygments/token.py
diff options
context:
space:
mode:
authorBenjamin Peterson <devnull@localhost>2008-09-11 17:49:10 -0500
committerBenjamin Peterson <devnull@localhost>2008-09-11 17:49:10 -0500
commit6dd9fa10fa4d2cd51e320a3b3722aa5269786d47 (patch)
tree13f802f72c147ae3ec1d2f3149cbb50c2e6cd3de /pygments/token.py
parent41660325f1d428540795cb7882ba214fb9871bc9 (diff)
downloadpygments-6dd9fa10fa4d2cd51e320a3b3722aa5269786d47.tar.gz
move the if __name__ == __main__ test from token.py to its test
Diffstat (limited to 'pygments/token.py')
-rw-r--r--pygments/token.py18
1 files changed, 0 insertions, 18 deletions
diff --git a/pygments/token.py b/pygments/token.py
index 6db41a56..4fc50919 100644
--- a/pygments/token.py
+++ b/pygments/token.py
@@ -201,21 +201,3 @@ STANDARD_TYPES = {
Generic.Subheading: 'gu',
Generic.Traceback: 'gt',
}
-
-
-
-if __name__ == '__main__':
- import sys
- # sanity check for token name dict: no duplicate entries!
- stp = STANDARD_TYPES.copy()
- stp[Token] = '---' # Token and Text do conflict, that is okay
- t = {}
- for k, v in stp.iteritems():
- t.setdefault(v, []).append(k)
- if len(t) == len(stp):
- print 'Okay!'
- sys.exit()
-
- for k, v in t.iteritems():
- if len(v) > 1:
- print "%r has more than one key: %r" % (k, v)