From 2d68e4ee9fa91f94adc669a86e9767d3fc429a68 Mon Sep 17 00:00:00 2001 From: Alexander Kryklia Date: Mon, 29 Apr 2013 18:51:37 +0300 Subject: [PATCH] PEPifying --- common/lib/xmodule/xmodule/word_cloud_module.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/common/lib/xmodule/xmodule/word_cloud_module.py b/common/lib/xmodule/xmodule/word_cloud_module.py index 055232036e..7869d04250 100644 --- a/common/lib/xmodule/xmodule/word_cloud_module.py +++ b/common/lib/xmodule/xmodule/word_cloud_module.py @@ -79,7 +79,6 @@ class WordCloudModule(WordCloudFields, XModule): """Convert raw word to suitable word.""" return word.strip().lower() - def prepare_words(self, top_words, total_count): """Convert words dictionary for client API.""" list_to_return = [] @@ -91,7 +90,7 @@ class WordCloudModule(WordCloudFields, XModule): else: percent = round(100.0 * word_tuple[1] / total_count) percents += percent - list_to_return.append({'text': word_tuple[0] , 'size': word_tuple[1], 'percent': percent}) + list_to_return.append({'text': word_tuple[0], 'size': word_tuple[1], 'percent': percent}) return list_to_return