(self)
return self._flavour.make_uri(self)
Return the path as a 'file' URI.
Return the path as a 'file' URI.
Return the path as a file URI .
def as_uri(self):
        """Return the path as a 'file' URI."""
        if not self.is_absolute():
            raise ValueError("relative path can't be expressed as a file URI")
        return self._flavour.make_uri(self)
def as_uri ( self ) : if not self . is_absolute ( ) : raise ValueError ( "relative path can't be expressed as a file URI" ) return self . _flavour . make_uri ( self )