equal
deleted
inserted
replaced
147 messages_file.write('\n') |
147 messages_file.write('\n') |
148 messages_file.write('#: %s\n' % prefix) |
148 messages_file.write('#: %s\n' % prefix) |
149 messages_file.write('\n') |
149 messages_file.write('\n') |
150 |
150 |
151 words_found = {} |
151 words_found = {} |
152 for filepath in appfil_file.xreadlines(): |
152 for filepath in appfil_file.readlines(): |
153 code_file = open(filepath.strip(), 'r') |
153 code_file = open(filepath.strip(), 'r') |
154 for match in regexp.finditer(code_file.read()): |
154 for match in regexp.finditer(code_file.read()): |
155 word = match.group(1) |
155 word = match.group(1) |
156 if not words_found.get(word, False) and messages.find("msgid \"%s\"\nmsgstr \"\"" % word) == -1: |
156 if not words_found.get(word, False) and messages.find("msgid \"%s\"\nmsgstr \"\"" % word) == -1: |
157 words_found[word] = True |
157 words_found[word] = True |