From 61ebd008e9ade549fcc3e934f4267472211c4b60 Mon Sep 17 00:00:00 2001 From: Waylan Limberg Date: Mon, 13 Feb 2012 11:07:55 -0500 Subject: Fixed #79. stdout now works from windows command line on Python 3. stdout is used later based on output being None. Don't try to get a jump on that. --- markdown/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/markdown/__main__.py b/markdown/__main__.py index b6a2e23..116073f 100644 --- a/markdown/__main__.py +++ b/markdown/__main__.py @@ -24,7 +24,7 @@ def parse_options(): ver = "%%prog %s" % markdown.version parser = optparse.OptionParser(usage=usage, description=desc, version=ver) - parser.add_option("-f", "--file", dest="filename", default=sys.stdout, + parser.add_option("-f", "--file", dest="filename", default=None, help="Write output to OUTPUT_FILE. Defaults to STDOUT.", metavar="OUTPUT_FILE") parser.add_option("-e", "--encoding", dest="encoding", -- cgit v1.2.3