Index: trunk/tools/editor_trends/etl/enricher.py |
— | — | @@ -293,11 +293,8 @@ |
294 | 294 | def extract_comment_text(revision_id, revision): |
295 | 295 | comment = {} |
296 | 296 | text = revision.find('comment') |
297 | | - if text != None: |
298 | | - if text.text == None: |
299 | | - comment[revision_id] = '' |
300 | | - else: |
301 | | - comment[revision_id] = text.text.encode('utf-8') |
| 297 | + if text != None and text.text != None: |
| 298 | + comment[revision_id] = text.text.encode('utf-8') |
302 | 299 | comment[revision_id] = revision.find('comment').text |
303 | 300 | return comment |
304 | 301 | |