Commit dc664333 authored by Arthur Lutz's avatar Arthur Lutz
Browse files

flake8 (detected by jenkins, not local tox)

parent 6cf39e14ec02
......@@ -47,6 +47,7 @@ def parse_blogpost_sioc(url):
item['content'] = unicode(get_object(g, post, SIOC.content))
yield item
format_map = {'application/xhtml+xml': u'text/html',
'text/html': u'text/html',
'text/plain': u'text/plain',
......@@ -172,6 +173,7 @@ def search_twitter(word):
# print results
return []
AVATAR_CACHE = {}
......@@ -185,6 +187,7 @@ def get_twitter_avatar(screen_name):
AVATAR_CACHE[screen_name] = user['profile_image_url']
return AVATAR_CACHE[screen_name]
if DataFeedParser is not None:
class BlogPostParser(DataFeedParser):
__abstract__ = True
......
......@@ -7,5 +7,6 @@ class AutomaticWebTest(AutomaticWebTest):
def to_test_etypes(self):
return set(('Blog', 'BlogEntry', 'MicroBlog', 'MicroBlogEntry',))
if __name__ == '__main__':
unittest_main()
......@@ -68,5 +68,6 @@ tutu
self.assertEqual(u'a', a3.previous_entity().title)
self.assertIsNone(a3.next_entity())
if __name__ == '__main__':
unittest_main()
......@@ -258,6 +258,7 @@ class MicroBlogEntrySameETypeListView(baseviews.SameETypeListView):
entity = self.cw_rset.get_entity(row, col)
self.w(format_microblog(entity))
_CLEAN_STYLE_RE = re.compile(r'<style .*?</style>', re.MULTILINE | re.DOTALL)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment