parameters: (self, filename)
docstring: Convert the given ``filename`` to a URI relative to
             this :class:`.TemplateCollection`.
docstring_summary: Convert the given ``filename`` to a URI relative to
             this :class:`.TemplateCollection`.
docstring_tokens: Convert the given filename to a URI relative to this : class : . TemplateCollection .
function: def filename_to_uri(self, filename):
          """Convert the given ``filename`` to a URI relative to
             this :class:`.TemplateCollection`."""
  
          try:
              return self._uri_cache[filename]
          except KeyError:
              value = self._relativeize(filename)
              self._uri_cache[filename] = value
              return value
function_tokens: def filename_to_uri ( self , filename ) : try : return self . _uri_cache [ filename ] except KeyError : value = self . _relativeize ( filename ) self . _uri_cache [ filename ] = value return value