openpack/basepack.py
def find_for(self, name):
		"""
		Get the correct content type for a given name
		"""
		map = self.items
		# first search the overrides (by name)
		# then fall back to the defaults (by extension)
		# finally, return None if unmatched
		return map.get(name, None) or map.get(get_ext(name) or None, None)
def find_for(self, name):
		map = self.items
		# first search the overrides (by name)
		# then fall back to the defaults (by extension)
		# finally, return None if unmatched
		return map.get(name, None) or map.get(get_ext(name) or None, None)
def find_for ( self , name ) : map = self . items # first search the overrides (by name) # then fall back to the defaults (by extension) # finally, return None if unmatched return map . get ( name , None ) or map . get ( get_ext ( name ) or None , None )
Get the correct content type for a given name
Get the correct content type for a given name