Slightly shorten the media_tags_as_string function
authorSebastian Spaeth <Sebastian@SSpaeth.de>
Wed, 14 Nov 2012 07:54:48 +0000 (08:54 +0100)
committerSebastian Spaeth <Sebastian@SSpaeth.de>
Wed, 14 Nov 2012 08:04:17 +0000 (09:04 +0100)
Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
mediagoblin/tools/text.py

index 09d172a659ce4a66378993482946d134e3e2ed01..24a4d28217d08e51923524b98fe138bf4889f1f1 100644 (file)
@@ -83,12 +83,10 @@ def media_tags_as_string(media_entry_tags):
 
     This is the opposite of convert_to_tag_list_of_dicts
     """
-    media_tag_string = ''
+    tags_string = ''
     if media_entry_tags:
-        media_tag_string = u', '.join(
-            [tag['name']
-             for tag in media_entry_tags])
-    return media_tag_string
+        tags_string = u', '.join([tag['name'] for tag in media_entry_tags])
+    return tags_string
 
 
 TOO_LONG_TAG_WARNING = \