Permalink
Browse files

Use magic.MAGIC_MIME instead of MAGIC_MIME_TYPE

  • Loading branch information...
1 parent 6af4955 commit 1bc3cd07de8b93c8f7515fc0d9f4d89af7cf33b8 @mludvig mludvig committed Jan 12, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 S3/S3.py
View
@@ -37,7 +37,7 @@ def mime_magic(file):
return magic_.from_file(file)
except (TypeError, AttributeError):
## Older python-magic versions
- magic_ = magic.open(magic.MAGIC_MIME_TYPE)
+ magic_ = magic.open(magic.MAGIC_MIME)
magic_.load()
def mime_magic(file):
return magic_.file(file)

0 comments on commit 1bc3cd0

Please sign in to comment.