Ticket #4899: ticket-4899.diff
File ticket-4899.diff, 718 bytes (added by , 17 years ago) |
---|
-
django/bin/make-messages.py
old new 9 9 import os 10 10 import sys 11 11 import getopt 12 from itertools import dropwhile 12 13 13 14 pythonize_re = re.compile(r'\n\s*//') 14 15 … … 118 119 msgs = msgs.replace(old, new) 119 120 if os.path.exists(potfile): 120 121 # Strip the header 121 msgs = '\n'.join( msgs.split('\n')[17:])122 msgs = '\n'.join(dropwhile(len, msgs.split('\n'))) 122 123 else: 123 124 msgs = msgs.replace('charset=CHARSET', 'charset=UTF-8') 124 125 if msgs: