Changeset 5722
- Timestamp:
- 07/17/07 05:25:43 (1 year ago)
- Files:
-
- django/trunk/django/bin/make-messages.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/bin/make-messages.py
r5708 r5722 10 10 import sys 11 11 import getopt 12 from itertools import dropwhile 12 13 13 14 pythonize_re = re.compile(r'\n\s*//') … … 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')
