summaryrefslogtreecommitdiff
path: root/pygmentize
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2014-10-08 09:00:03 +0200
committerGeorg Brandl <georg@python.org>2014-10-08 09:00:03 +0200
commitac3a01c3b86d36b4dc88a11dfe2dfe042ea1c208 (patch)
treebf18e7742a74e7be8d661b31d06832f080d8c360 /pygmentize
parentab509e4ea2a8bd3c7e8e355b0e83b3e2de9f7a01 (diff)
downloadpygments-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-xpygmentize3
1 files changed, 2 insertions, 1 deletions
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: