summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorent Xicluna <florent.xicluna@gmail.com>2013-03-24 15:14:49 +0100
committerFlorent Xicluna <florent.xicluna@gmail.com>2013-03-24 15:14:49 +0100
commitf44612e508e1433c40e7f394d171451587425426 (patch)
tree7d7c1216ed5e598ddca58dd6c8ab5ae9672c2ab3
parentb48efd314b982b00275924e6c81d4e96b7a32df4 (diff)
downloadpep8-f44612e508e1433c40e7f394d171451587425426.tar.gz
Refactor few lines of process_options
-rwxr-xr-xpep8.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/pep8.py b/pep8.py
index 8157507..e1ec9e3 100755
--- a/pep8.py
+++ b/pep8.py
@@ -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