Reformats code as requested

This commit is contained in:
Tarcisio Fedrizzi 2016-02-28 23:41:20 +01:00
parent 79ad65ee64
commit 0ab44c4f4a

View File

@ -821,9 +821,9 @@ class CommandDispatcher:
log.misc.debug("{} contained: '{}'".format(target,
text.replace('\n', '\\n')))
text_urls = [u for u in text.split('\n') if u.strip()]
if len(text_urls) > 1 and not urlutils.is_url(text_urls[0]) \
and urlutils.get_path_if_valid(text_urls[0],
check_exists=True) is not None:
if (len(text_urls) > 1 and not urlutils.is_url(text_urls[0]) and
urlutils.get_path_if_valid(
text_urls[0], check_exists=True) is None):
text_urls = [text]
for i, text_url in enumerate(text_urls):
if not window and i > 0: