remove unnecessarily complicated conditional

This commit is contained in:
Gil Forsyth 2015-12-04 17:33:37 -05:00
parent f5b86b6a0f
commit 72170c5f30

View file

@ -320,7 +320,7 @@ class Completer(object):
space = ' '
slash = '/'
rtn = {_normpath(repr(s + (slash if os.path.isdir(s) else '')))
if (COMPLETION_WRAP_TOKENS.intersection(s) != set()) else
if COMPLETION_WRAP_TOKENS.intersection(s) else
s + space
if s[-1:].isalnum() else
s for s in out.splitlines()}