# File lib/puppet/network/format_handler.rb, line 78
78:     def self.format_to_canonical_name(format)
79:         case format
80:         when Puppet::Network::Format
81:             out = format
82:         when %r{\w+/\w+}
83:             out = mime(format)
84:         else
85:             out = format(format)
86:         end
87:         raise ArgumentError, "No format match the given format name or mime-type (%s)" % format if out.nil?
88:         out.name
89:     end