diff options
author | Matthäus G. Chajdas <dev@anteru.net> | 2020-03-07 20:43:38 +0100 |
---|---|---|
committer | Matthäus G. Chajdas <dev@anteru.net> | 2020-03-07 20:44:48 +0100 |
commit | a9902056f3d6fcb9822a55f9e93a11c666258dc1 (patch) | |
tree | 93a0be873b40d480852970b2b41264452d308e91 /pygments/__init__.py | |
parent | b60392ca0b026308d61c2f533109e2afd8b8d780 (diff) | |
download | pygments-git-a9902056f3d6fcb9822a55f9e93a11c666258dc1.tar.gz |
Fix #1401.
Remove a '__main__' handler from __init__.py.
Diffstat (limited to 'pygments/__init__.py')
-rw-r--r-- | pygments/__init__.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/pygments/__init__.py b/pygments/__init__.py index e253503e..93600fdc 100644 --- a/pygments/__init__.py +++ b/pygments/__init__.py @@ -83,7 +83,3 @@ def highlight(code, lexer, formatter, outfile=None): """ return format(lex(code, lexer), formatter, outfile) - -if __name__ == '__main__': # pragma: no cover - from pygments.cmdline import main - sys.exit(main(sys.argv)) |