Skip to content

Commit

Permalink
Fixed #4899 -- Fixed a problem with PO file header generation caused …
Browse files Browse the repository at this point in the history
…by [5708].

Thanks, Ramiro Morales.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@5722 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
malcolmt committed Jul 17, 2007
1 parent c92ce31 commit 23404cd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion django/bin/make-messages.py
Expand Up @@ -9,6 +9,7 @@
import os
import sys
import getopt
from itertools import dropwhile

pythonize_re = re.compile(r'\n\s*//')

Expand Down Expand Up @@ -118,7 +119,7 @@ def make_messages():
msgs = msgs.replace(old, new)
if os.path.exists(potfile):
# Strip the header
msgs = '\n'.join(msgs.split('\n')[17:])
msgs = '\n'.join(dropwhile(len, msgs.split('\n')))
else:
msgs = msgs.replace('charset=CHARSET', 'charset=UTF-8')
if msgs:
Expand Down

0 comments on commit 23404cd

Please sign in to comment.