new-words
diff new-words.py @ 61:0799785cf194
minifix
author | Igor Chubin <igor@chub.in> |
---|---|
date | Fri Nov 04 20:48:34 2011 +0100 (2011-11-04) |
parents | 2a1a25e61872 |
children | 1b8b30ad7c95 |
line diff
1.1 --- a/new-words.py Thu Nov 03 15:53:59 2011 +0100 1.2 +++ b/new-words.py Fri Nov 04 20:48:34 2011 +0100 1.3 @@ -693,8 +693,9 @@ 1.4 lines_after = lines 1.5 deleted_words = [] 1.6 1.7 + lines_after_set = set(lines_after) 1.8 for line in lines_before: 1.9 - if line not in lines_after: 1.10 + if line not in lines_after_set: 1.11 line = line.strip() 1.12 if ' ' in line: 1.13 word = re.split('\s+', line, 1)[1]