diff options
| author | Alex Gaynor <alex.gaynor@gmail.com> | 2013-11-02 13:12:09 -0700 |
|---|---|---|
| committer | Alex Gaynor <alex.gaynor@gmail.com> | 2013-11-02 13:12:09 -0700 |
| commit | 7548aa8ffd46eb6e0f73730d1b2eb515ba581f95 (patch) | |
| tree | 963393779f4c8c33351ea605f708f8da7d9f70bf /django/core/management/commands/compilemessages.py | |
| parent | 65c4ac3b2434d1828cb76c9f4454fe64e81354ee (diff) | |
More attacking E302 violators
Diffstat (limited to 'django/core/management/commands/compilemessages.py')
| -rw-r--r-- | django/core/management/commands/compilemessages.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/django/core/management/commands/compilemessages.py b/django/core/management/commands/compilemessages.py index cb41492004..931d9948e1 100644 --- a/django/core/management/commands/compilemessages.py +++ b/django/core/management/commands/compilemessages.py @@ -8,6 +8,7 @@ from django.core.management.base import BaseCommand, CommandError from django.core.management.utils import find_command, popen_wrapper from django.utils._os import npath + def has_bom(fn): with open(fn, 'rb') as f: sample = f.read(4) @@ -15,6 +16,7 @@ def has_bom(fn): sample.startswith(codecs.BOM_UTF16_LE) or \ sample.startswith(codecs.BOM_UTF16_BE) + def compile_messages(stdout, locale=None): program = 'msgfmt' if find_command(program) is None: |
