Changes line as suggested in review

This commit is contained in:
Tarcisio Fedrizzi 2016-01-12 09:58:08 +01:00
parent b2c7ab9211
commit 4bbc1e2d8a

View File

@ -827,7 +827,7 @@ class CommandDispatcher:
raise cmdexc.CommandError("{} is empty.".format(target))
log.misc.debug("{} contained: '{}'".format(target,
text.replace('\n', '\\n')))
text_urls = enumerate([u for u in text.split('\n') if u != ''])
text_urls = enumerate(u for u in text.split('\n') if u)
for i, text_url in text_urls:
if not window and i > 0:
tab = False