diff options
author | Florent Xicluna <florent.xicluna@gmail.com> | 2013-03-24 15:14:49 +0100 |
---|---|---|
committer | Florent Xicluna <florent.xicluna@gmail.com> | 2013-03-24 15:14:49 +0100 |
commit | f44612e508e1433c40e7f394d171451587425426 (patch) | |
tree | 7d7c1216ed5e598ddca58dd6c8ab5ae9672c2ab3 | |
parent | b48efd314b982b00275924e6c81d4e96b7a32df4 (diff) | |
download | pep8-f44612e508e1433c40e7f394d171451587425426.tar.gz |
Refactor few lines of process_options
-rwxr-xr-x | pep8.py | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -1820,13 +1820,10 @@ def process_options(arglist=None, parse_argv=False, config_file=None, options = read_config(options, args, arglist, parser) options.reporter = parse_argv and options.quiet == 1 and FileReport - if options.filename: - options.filename = options.filename.split(',') + options.filename = options.filename and options.filename.split(',') options.exclude = options.exclude.split(',') - if options.select: - options.select = options.select.split(',') - if options.ignore: - options.ignore = options.ignore.split(',') + options.select = options.select and options.select.split(',') + options.ignore = options.ignore and options.ignore.split(',') if options.diff: options.reporter = DiffReport |