Commits

David Chambers  committed 2a9e392

Replaced six lines of code with one rather long line.

  • Participants
  • Parent commits 053d78b

Comments (0)

Files changed (1)

         if 'tags' in mango.settings.META_LISTS and 'tags' in self.meta:
             self._tags = [Tag(tag) for tag in self.meta['tags']]
 
-        self.author = None
         author_name = self.meta.get('author')
-        if author_name:
-            self.author = {
-                'name': author_name,
-                'url': AUTHORS.get(author_name),
-            }
+        self.author = author_name and {'name': author_name, 'url': AUTHORS.get(author_name)} or None
 
         self.datetime = None
         if 'date' in self.meta and 'time' in self.meta: