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 @@
168
168
169
169
170
170
def calculate_delta_article_size(size, text):
171
+ if text == None:
172
+ text = ''
171
173
if 'prev_size' not in size:
172
174
size['prev_size'] = 0
173
175
size['cur_size'] = len(text)