aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaylan Limberg <waylan@gmail.com>2012-02-13 11:07:55 -0500
committerWaylan Limberg <waylan@gmail.com>2012-02-13 11:07:55 -0500
commit61ebd008e9ade549fcc3e934f4267472211c4b60 (patch)
treef58f83361b7b9806acdaf74609d060e0a22a816f
parent9834966294597181545d2f987f223b6ca1aeb070 (diff)
downloadmarkdown-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__.py2
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",