Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #8491 -- Allow settings.LOCALE_PATH to be any sequence, not jus…

…t a tuple.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@8527 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 05e8c3ecd3a01ce0574040857a02bac04097b36f 1 parent d535edb
Malcolm Tredinnick authored
4  django/core/management/commands/compilemessages.py
@@ -9,10 +9,10 @@
9 9
     from sets import Set as set     # For Python 2.3
10 10
 
11 11
 def compile_messages(locale=None):
12  
-    basedirs = (os.path.join('conf', 'locale'), 'locale')
  12
+    basedirs = [os.path.join('conf', 'locale'), 'locale']
13 13
     if os.environ.get('DJANGO_SETTINGS_MODULE'):
14 14
         from django.conf import settings
15  
-        basedirs += settings.LOCALE_PATHS
  15
+        basedirs.extend(settings.LOCALE_PATHS)
16 16
 
17 17
     # Gather existing directories.
18 18
     basedirs = set(map(os.path.abspath, filter(os.path.isdir, basedirs)))

0 notes on commit 05e8c3e

Please sign in to comment.
Something went wrong with that request. Please try again.