From f83f5fbce8dc2a2d05df7c2731d8e698e14d3385 Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Tue, 2 Aug 2016 18:32:42 +0100 Subject: [PATCH] Make it actually compile --- synapse/rest/media/v1/preview_url_resource.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/synapse/rest/media/v1/preview_url_resource.py b/synapse/rest/media/v1/preview_url_resource.py index ea46b8aa1b..4624b89014 100644 --- a/synapse/rest/media/v1/preview_url_resource.py +++ b/synapse/rest/media/v1/preview_url_resource.py @@ -344,8 +344,8 @@ class PreviewUrlResource(Resource): # lines) text_nodes = ( line.strip() + for el in cloned_tree.iter() if el.text for line in el.text.splitlines() - for el in el.iter() if el.text ) # Try to get a summary of between 200 and 500 words, respecting