Did I find the right examples for you? yes no

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)
OS-specific conversion from a relative URL of the 'file' scheme
to a file system path; not recommended for general use.

            def url2pathname(pathname):
        """OS-specific conversion from a relative URL of the 'file' scheme
        to a file system path; not recommended for general use."""
        return unquote(pathname)
        


src/s/h/shove-0.5.6/shove/store.py   shove(Download)
 
from shove.base import Mapping, FileBase
from shove._compat import anydbm, synchronized, url2pathname
 
__all__ = 'DBMStore FileStore MemoryStore SimpleStore'.split()
    def __init__(self, engine, **kw):
        super(ClientStore, self).__init__(engine, **kw)
        if engine.startswith(self.init):
            self._engine = url2pathname(engine.split('://')[1])
 

src/s/h/shove-0.5.6/shove/base.py   shove(Download)
from stuf.utils import loads, optimize
 
from shove._compat import url2pathname, quote_plus, unquote_plus
 
 
    def __init__(self, engine, **kw):
        super(FileBase, self).__init__(engine, **kw)
        if engine.startswith(self.init):
            engine = url2pathname(engine.split('://')[1])
        self._dir = engine