Commits

Rich Leland committed 11bef0c

Refs #40. Added deprecation warning for s3 backend.

  • Participants
  • Parent commits e17c126

Comments (0)

Files changed (1)

File storages/backends/s3.py

 import os
 import mimetypes
+import warnings
 
 try:
     from cStringIO import StringIO
             calling_format=CALLING_FORMAT, encrypt=False,
             gzip=IS_GZIPPED, gzip_content_types=GZIP_CONTENT_TYPES,
             preload_metadata=PRELOAD_METADATA):
+        warnings.warn(
+            "The s3 backend is deprecated and will be removed in version 1.2. "
+            "Use the s3boto backend instead.",
+            PendingDeprecationWarning
+        )
         self.bucket = bucket
         self.acl = acl
         self.encrypt = encrypt