diff options
author | Waylan Limberg <waylan@gmail.com> | 2012-02-13 11:07:55 -0500 |
---|---|---|
committer | Waylan Limberg <waylan@gmail.com> | 2012-02-13 11:07:55 -0500 |
commit | 61ebd008e9ade549fcc3e934f4267472211c4b60 (patch) | |
tree | f58f83361b7b9806acdaf74609d060e0a22a816f | |
parent | 9834966294597181545d2f987f223b6ca1aeb070 (diff) | |
download | markdown-61ebd008e9ade549fcc3e934f4267472211c4b60.tar.gz markdown-61ebd008e9ade549fcc3e934f4267472211c4b60.tar.bz2 markdown-61ebd008e9ade549fcc3e934f4267472211c4b60.zip |
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.
-rw-r--r-- | markdown/__main__.py | 2 |
1 files changed, 1 insertions, 1 deletions
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", |