PEP 8 compliance and small modification to mime.types file
This commit is contained in:
@@ -3,3 +3,8 @@
|
|||||||
# Please enter Mime-Types in standard mime.types format #
|
# Please enter Mime-Types in standard mime.types format #
|
||||||
# Mime-Type Extension ex. image/jpeg jpg #
|
# Mime-Type Extension ex. image/jpeg jpg #
|
||||||
#########################################################
|
#########################################################
|
||||||
|
|
||||||
|
#EX. Mime-Type Extension
|
||||||
|
# foo/bar foo
|
||||||
|
|
||||||
|
|
||||||
|
@@ -1268,7 +1268,8 @@ class BaseApplication(object):
|
|||||||
self.account_ring = account_ring or \
|
self.account_ring = account_ring or \
|
||||||
Ring(os.path.join(swift_dir, 'account.ring.gz'))
|
Ring(os.path.join(swift_dir, 'account.ring.gz'))
|
||||||
self.memcache = memcache
|
self.memcache = memcache
|
||||||
mimetypes.init(mimetypes.knownfiles + [os.path.join(self.swift_dir, 'mime.types')])
|
mimetypes.init(mimetypes.knownfiles +
|
||||||
|
[os.path.join(self.swift_dir, 'mime.types')])
|
||||||
|
|
||||||
def get_controller(self, path):
|
def get_controller(self, path):
|
||||||
"""
|
"""
|
||||||
|
Reference in New Issue
Block a user