Did I find the right examples for you? yes no

All Samples(5)  |  Call(3)  |  Derive(0)  |  Import(2)
Quote the query fragment of a URL; replacing ' ' with '+'

        def quote_plus(s, safe=''):
    """Quote the query fragment of a URL; replacing ' ' with '+'"""
    if ' ' in s:
        s = quote(s, safe + ' ')
        return s.replace(' ', '+')
    return quote(s, safe)
        


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 _key_to_file(self, key):
        # gives the filesystem path for a key
        return join(self._dir, quote_plus(key))
 

src/s/h/shove-0.5.6/shove/stores/gitstore.py   shove(Download)
 
from shove.store import FileStore
from shove._compat import quote_plus
 
 
    def __setitem__(self, key, value):
        super(GitStore, self).__setitem__(key, value)
        fname = quote_plus(key)
        self._repo.stage([fname])
        self._repo.do_commit('added {0}'.format(fname), committer='shove')
 
    def __delitem__(self, key):
        super(GitStore, self).__delitem__(key)
        fname = quote_plus(key)