diff options
author | Georg Brandl <georg@python.org> | 2014-10-08 09:00:03 +0200 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2014-10-08 09:00:03 +0200 |
commit | ac3a01c3b86d36b4dc88a11dfe2dfe042ea1c208 (patch) | |
tree | bf18e7742a74e7be8d661b31d06832f080d8c360 /pygmentize | |
parent | ab509e4ea2a8bd3c7e8e355b0e83b3e2de9f7a01 (diff) | |
download | pygments-ac3a01c3b86d36b4dc88a11dfe2dfe042ea1c208.tar.gz |
Refine streaming mode a bit:
* flush output file after writing a line (important in Py3)
* disallow -s and input file name
* disallow -s without -l
* use binary stdin on Py3
* add to usage doc.
Diffstat (limited to 'pygmentize')
-rwxr-xr-x | pygmentize | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,6 +1,7 @@ #!/usr/bin/env python2 -import sys, pygments.cmdline +import sys +import pygments.cmdline try: sys.exit(pygments.cmdline.main(sys.argv)) except KeyboardInterrupt: |