PEP 8 compliance and small modification to mime.types file

This commit is contained in:
Conrad Weidenkeller 2010-11-23 19:26:02 -06:00
parent df7f1d3147
commit ca8d30466c
2 changed files with 7 additions and 1 deletions

View File

@ -3,3 +3,8 @@
# Please enter Mime-Types in standard mime.types format #
# Mime-Type Extension ex. image/jpeg jpg #
#########################################################
#EX. Mime-Type Extension
# foo/bar foo

View File

@ -1268,7 +1268,8 @@ class BaseApplication(object):
self.account_ring = account_ring or \
Ring(os.path.join(swift_dir, 'account.ring.gz'))
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):
"""