summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorent Xicluna <florent.xicluna@gmail.com>2012-06-13 09:05:52 +0200
committerFlorent Xicluna <florent.xicluna@gmail.com>2012-06-13 09:05:52 +0200
commitfced27d8c5af2c57b32163898be639fc8df96942 (patch)
tree316626b182d3982a633ddbca8674a4593bc185c7
parent4866380ad13a3f3830ba710b5940ca4f0c46a67a (diff)
downloadpep8-fced27d8c5af2c57b32163898be639fc8df96942.tar.gz
Fix the --doctest option
-rwxr-xr-xpep8.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pep8.py b/pep8.py
index 4224bca..a82a73a 100755
--- a/pep8.py
+++ b/pep8.py
@@ -1903,9 +1903,9 @@ def process_options(arglist=None, parse_argv=False):
options, args = parser.parse_args(arglist)
if options.show_pep8:
options.repeat = False
+ options.reporter = None
if options.testsuite:
- options.reporter = None
args.append(options.testsuite)
elif not options.doctest:
if parse_argv and not args:
@@ -1930,8 +1930,8 @@ def process_options(arglist=None, parse_argv=False):
options.ignore = DEFAULT_IGNORE.split(',')
if options.diff:
- stdin = sys.stdin.read()
options.reporter = DiffReport
+ stdin = sys.stdin.read()
options.selected_lines = parse_udiff(stdin, options.filename)
args = list(options.selected_lines.keys())