From ac3a01c3b86d36b4dc88a11dfe2dfe042ea1c208 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Wed, 8 Oct 2014 09:00:03 +0200 Subject: 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. --- pygmentize | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pygmentize') diff --git a/pygmentize b/pygmentize index 8b3b2067..aea38727 100755 --- a/pygmentize +++ b/pygmentize @@ -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: -- cgit v1.2.1