r86070 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r86069‎ | r86070 | r86071 >
Date:19:10, 14 April 2011
Author:diederik
Status:deferred
Tags:
Comment:
Handle edge case for determining characters added / removed.
Modified paths:
  • /trunk/tools/editor_trends/etl/variables.py (modified) (history)

Diff [purge]

Index: trunk/tools/editor_trends/etl/variables.py
@@ -167,6 +167,8 @@
168168
169169
170170 def calculate_delta_article_size(size, text):
 171+ if text == None:
 172+ text = ''
171173 if 'prev_size' not in size:
172174 size['prev_size'] = 0
173175 size['cur_size'] = len(text)