diff options
author | Tim Hatch <tim@timhatch.com> | 2014-10-28 15:03:23 -0700 |
---|---|---|
committer | Tim Hatch <tim@timhatch.com> | 2014-10-28 15:03:23 -0700 |
commit | 118aa6d3bc35bffb0b85f759e465f1c5a88972e8 (patch) | |
tree | 0b7b0428a4d752842e67259f2ae96b32d5535e31 | |
parent | aad6a1e0d9aadf6393216855560fa3bb2102b01b (diff) | |
download | pygments-118aa6d3bc35bffb0b85f759e465f1c5a88972e8.tar.gz |
Fix inheritance repetition problem. __mro__ already includes cls.
-rw-r--r-- | pygments/lexer.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pygments/lexer.py b/pygments/lexer.py index 5b3ad358..21f595be 100644 --- a/pygments/lexer.py +++ b/pygments/lexer.py @@ -533,7 +533,7 @@ class RegexLexerMeta(LexerMeta): """ tokens = {} inheritable = {} - for c in itertools.chain((cls,), cls.__mro__): + for c in cls.__mro__: toks = c.__dict__.get('tokens', {}) for state, items in iteritems(toks): |