Skip to content

Commit f44612e

Browse files
committed
Refactor few lines of process_options
1 parent b48efd3 commit f44612e

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

pep8.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1820,13 +1820,10 @@ def process_options(arglist=None, parse_argv=False, config_file=None,
18201820
options = read_config(options, args, arglist, parser)
18211821
options.reporter = parse_argv and options.quiet == 1 and FileReport
18221822

1823-
if options.filename:
1824-
options.filename = options.filename.split(',')
1823+
options.filename = options.filename and options.filename.split(',')
18251824
options.exclude = options.exclude.split(',')
1826-
if options.select:
1827-
options.select = options.select.split(',')
1828-
if options.ignore:
1829-
options.ignore = options.ignore.split(',')
1825+
options.select = options.select and options.select.split(',')
1826+
options.ignore = options.ignore and options.ignore.split(',')
18301827

18311828
if options.diff:
18321829
options.reporter = DiffReport

0 commit comments

Comments
 (0)