Issue #611 on hold

IronPython compatibility

Anonymous created an issue

The automatic module import trick at the end of pygments/lexers/init.py doesn't work in IronPython 2.7 Beta.

Because of that, when trying to run cmdline.py it will fail with the following error: <<<ImportError: cannot import TextLexer from pygments.lexers>>> at <<<cmdline.py:line 17>>>. This error can be fixed by importing TextLexer directly from pygments.lexers.special instead of from pygments.lexers.

With this change in cmdline.py, I was able to generate a HTML colorization of a Python file.

Comments (1)

  1. Tim Hatch
    • changed status to on hold
    • changed component to lexers
    • changed milestone to 1.4

    There are a few other places in the code that rely on that trick working (like the tests). I'd like to put this on hold until someone has IronPython available to test on.

  2. Log in to comment