Commits

Jannis Leidel  committed fc4deda

Minor bikeshedding about the utility module name.

  • Participants
  • Parent commits c79bd4d

Comments (0)

Files changed (5)

File storages/backends/azure_storage.py

         "Could not load Azure bindings. "
         "See https://github.com/WindowsAzure/azure-sdk-for-python")
 
-from storages.util import setting
+from storages.utils import setting
 
 
 def clean_name(name):

File storages/backends/gs.py

 from django.core.exceptions import ImproperlyConfigured
 
 from storages.backends.s3boto import S3BotoStorage, S3BotoStorageFile
-from storages.util import setting
+from storages.utils import setting
 
 try:
     from boto.gs.connection import GSConnection, SubdomainCallingFormat

File storages/backends/s3boto.py

     raise ImproperlyConfigured("Could not load Boto's S3 bindings.\n"
                                "See https://github.com/boto/boto")
 
-from storages.util import setting
+from storages.utils import setting
 
 boto_version_info = tuple([int(i) for i in boto_version.split('.')])
 

File storages/util.py

-from django.conf import settings
-
-
-def setting(name, default=None):
-    """
-    Helper function to get a Django setting by name or (optionally) return
-    a default (or else ``None``).
-    """
-    return getattr(settings, name, default)

File storages/utils.py

+from django.conf import settings
+
+
+def setting(name, default=None):
+    """
+    Helper function to get a Django setting by name or (optionally) return
+    a default (or else ``None``).
+    """
+    return getattr(settings, name, default)