Mercurial > babel > mirror
comparison babel/messages/extract.py @ 122:c75026f5417f trunk
stup doesn't exist and this code block is never encountered, probably a remnant from
a cut paste
author | pjenvey |
---|---|
date | Sat, 16 Jun 2007 22:25:11 +0000 |
parents | f546914b3d65 |
children | bd3b47492396 |
comparison
equal
deleted
inserted
replaced
121:d2ac14a7ea08 | 122:c75026f5417f |
---|---|
335 [comment[1] for comment in translator_comments]) | 335 [comment[1] for comment in translator_comments]) |
336 funcname = lineno = None | 336 funcname = lineno = None |
337 messages = [] | 337 messages = [] |
338 translator_comments = [] | 338 translator_comments = [] |
339 elif tok == STRING: | 339 elif tok == STRING: |
340 if lineno is None: | |
341 lineno = stup[0] | |
342 # Unwrap quotes in a safe manner | 340 # Unwrap quotes in a safe manner |
343 buf.append(eval(value, {'__builtins__':{}}, {})) | 341 buf.append(eval(value, {'__builtins__':{}}, {})) |
344 elif tok == OP and value == ',': | 342 elif tok == OP and value == ',': |
345 messages.append(''.join(buf)) | 343 messages.append(''.join(buf)) |
346 del buf[:] | 344 del buf[:] |