diff options
author | Florent Xicluna <florent.xicluna@gmail.com> | 2012-06-13 09:05:52 +0200 |
---|---|---|
committer | Florent Xicluna <florent.xicluna@gmail.com> | 2012-06-13 09:05:52 +0200 |
commit | fced27d8c5af2c57b32163898be639fc8df96942 (patch) | |
tree | 316626b182d3982a633ddbca8674a4593bc185c7 | |
parent | 4866380ad13a3f3830ba710b5940ca4f0c46a67a (diff) | |
download | pep8-fced27d8c5af2c57b32163898be639fc8df96942.tar.gz |
Fix the --doctest option
-rwxr-xr-x | pep8.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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()) |