minor readability improvement

Signed-off-by: Mattias Andrée <maandree@operamail.com>
This commit is contained in:
Mattias Andrée 2013-08-17 16:13:06 +02:00
parent 640badf4c0
commit 94e8c144ae

View file

@ -501,8 +501,8 @@ class Ponysay():
''' '''
quote = (args.opts['-q'] is not None) or (args.opts['-Q'] is not None) quote = (args.opts['-q'] is not None) or (args.opts['-Q'] is not None)
extraquote = (args.opts['+q'] is not None) or (args.opts['-Q'] is not None) extraquote = (args.opts['+q'] is not None) or (args.opts['-Q'] is not None)
standard = (args.opts['-f'] is not None) or (args.opts['-F'] is not None) or (args.opts['-q'] is not None) or (args.opts['-Q'] is not None) standard = (args.opts['-f'] is not None) or (args.opts['-F'] is not None) or quote
extra = (args.opts['+f'] is not None) or (args.opts['-F'] is not None) or (args.opts['+q'] is not None) or (args.opts['-Q'] is not None) extra = (args.opts['+f'] is not None) or (args.opts['-F'] is not None) or extraquote
if not (standard or extra): if not (standard or extra):
standard = True standard = True
ponydirs = (self.ponydirs if standard else []) + (self.extraponydirs if extra else []); ponydirs = (self.ponydirs if standard else []) + (self.extraponydirs if extra else []);