mirror of
https://github.com/django/django.git
synced 2025-07-08 05:45:16 +00:00
Fixed the remaining E302 violations int eh django package
This commit is contained in:
parent
393cdbfaa2
commit
fe995e6cbd
19 changed files with 199 additions and 0 deletions
|
@ -27,6 +27,7 @@ from django.core.management import call_command
|
|||
|
||||
HAVE_JS = ['admin']
|
||||
|
||||
|
||||
def _get_locale_dirs(include_core=True):
|
||||
"""
|
||||
Return a tuple (contrib name, absolute path) for all locale directories,
|
||||
|
@ -44,6 +45,7 @@ def _get_locale_dirs(include_core=True):
|
|||
dirs.insert(0, ('core', os.path.join(os.getcwd(), 'django', 'conf', 'locale')))
|
||||
return dirs
|
||||
|
||||
|
||||
def _tx_resource_for_name(name):
|
||||
""" Return the Transifex resource name """
|
||||
if name == 'core':
|
||||
|
@ -51,6 +53,7 @@ def _tx_resource_for_name(name):
|
|||
else:
|
||||
return "django-core.contrib-%s" % name
|
||||
|
||||
|
||||
def _check_diff(cat_name, base_path):
|
||||
"""
|
||||
Output the approximate number of changed/added strings in the en catalog.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue