~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to ivle/util.py

  • Committer: William Grant
  • Date: 2009-04-28 05:44:03 UTC
  • Revision ID: grantw@unimelb.edu.au-20090428054403-6cmaloy14nh6f033
Remove ivle.conf.mimetypes.additional_mime_types.

One of its members was never used, and the other two are redundant with the
defaults.

Show diffs side-by-side

added added

removed removed

Lines of Context:
127
127
    else:
128
128
        return tuple(splitpath)
129
129
 
130
 
# Initialise mime types library
131
 
mimetypes.init()
132
 
for (ext, mimetype) in ivle.conf.mimetypes.additional_mime_types.items():
133
 
    mimetypes.add_type(mimetype, ext)
134
 
 
135
130
def nice_filetype(filename):
136
131
    """Given a filename or basename, returns a "friendly" name for that
137
132
    file's type.