Did I find the right examples for you? yes no

All Samples(30)  |  Call(24)  |  Derive(0)  |  Import(6)
Utility function to address handling of unicode characters
when using the quote method of the stdlib module
urlparse. Converts unicode, if supplied, to utf-8 and returns
quoted utf-8 string.

For more info see http://bugs.python.org/issue1712522 or
http://mail.python.org/pipermail/python-dev/2006-July/067248.html

        def unicode_quote(s):
    """
    Utility function to address handling of unicode characters
    when using the quote method of the stdlib module
    urlparse. Converts unicode, if supplied, to utf-8 and returns
    quoted utf-8 string.

    For more info see http://bugs.python.org/issue1712522 or
    http://mail.python.org/pipermail/python-dev/2006-July/067248.html
    """
    if isinstance(s, unicode):
        return quote(s.encode("utf-8"))
    else:
        return quote(str(s))
        


src/p/y/python-cloudfiles-1.7.11/cloudfiles/storage_object.py   python-cloudfiles(Download)
from socket  import timeout
import consts
from utils   import unicode_quote, requires_name
 
# Because HTTPResponse objects *have* to have read() called on them
 
        path = "/%s/%s/%s" % (self.container.conn.uri.rstrip('/'), \
                unicode_quote(self.container.name), unicode_quote(self.name))
 
        # Requests are handled a little differently for writes ...
 
        headers = self._make_headers()
        headers['Destination'] = unicode_quote("%s/%s" % (container_name, name))
        headers['Content-Length'] = 0
        response = self.container.conn.make_request(
 
        headers = self._make_headers()
        headers['X-Copy-From'] = unicode_quote("%s/%s" % (container_name, name))
        headers['Content-Length'] = 0
        response = self.container.conn.make_request(

src/p/y/python-cloudfiles-HEAD/cloudfiles/storage_object.py   python-cloudfiles(Download)
from socket  import timeout
import consts
from utils   import unicode_quote, requires_name
 
# Because HTTPResponse objects *have* to have read() called on them
 
        path = "/%s/%s/%s" % (self.container.conn.uri.rstrip('/'), \
                unicode_quote(self.container.name), unicode_quote(self.name))
 
        # Requests are handled a little differently for writes ...
 
        headers = self._make_headers()
        headers['Destination'] = unicode_quote("%s/%s" % (container_name, name))
        headers['Content-Length'] = 0
        response = self.container.conn.make_request(
 
        headers = self._make_headers()
        headers['X-Copy-From'] = unicode_quote("%s/%s" % (container_name, name))
        headers['Content-Length'] = 0
        response = self.container.conn.make_request(

src/p/y/python-cloudfiles-1.7.11/cloudfiles/connection.py   python-cloudfiles(Download)
from    httplib   import HTTPSConnection, HTTPConnection, HTTPException
from    container import Container, ContainerResults
from    utils     import unicode_quote, parse_url, THTTPConnection, THTTPSConnection
from    errors    import ResponseError, NoSuchContainer, ContainerNotEmpty, \
                         InvalidContainerName, CDNNotEnabled, ContainerExists
 
        path = '/%s/%s' % \
                 (self.uri.rstrip('/'), '/'.join([unicode_quote(i) for i in path]))
        headers = {'Content-Length': str(len(data)),
                   'User-Agent': self.user_agent,
        """
        path = '/%s/%s' % \
                 (self.uri.rstrip('/'), '/'.join([unicode_quote(i) for i in path]))
 
        if isinstance(parms, dict) and parms:

src/p/y/python-cloudfiles-HEAD/cloudfiles/connection.py   python-cloudfiles(Download)
from    httplib   import HTTPSConnection, HTTPConnection, HTTPException
from    container import Container, ContainerResults
from    utils     import unicode_quote, parse_url, THTTPConnection, THTTPSConnection
from    errors    import ResponseError, NoSuchContainer, ContainerNotEmpty, \
                         InvalidContainerName, CDNNotEnabled, ContainerExists
 
        path = '/%s/%s' % \
                 (self.uri.rstrip('/'), '/'.join([unicode_quote(i) for i in path]))
        headers = {'Content-Length': str(len(data)),
                   'User-Agent': self.user_agent,
        """
        path = '/%s/%s' % \
                 (self.uri.rstrip('/'), '/'.join([unicode_quote(i) for i in path]))
 
        if isinstance(parms, dict) and parms:

src/p/y/python-clouddns-0.0.0/clouddns/connection.py   python-clouddns(Download)
from urllib import quote
 
from utils  import unicode_quote, parse_url, \
    THTTPConnection, THTTPSConnection
from domain import DomainResults, Domain
        path = '/%s/%s' % \
                 (self.uri.rstrip('/'), '/'.join(
                   [unicode_quote(i) for i in path]))
        if isinstance(parms, dict) and parms:
            query_args = \

src/p/y/python-clouddns-HEAD/clouddns/connection.py   python-clouddns(Download)
from urllib import quote
 
from utils  import unicode_quote, parse_url, \
    THTTPConnection, THTTPSConnection
from domain import DomainResults, Domain
        path = '/%s/%s' % \
                 (self.uri.rstrip('/'), '/'.join(
                   [unicode_quote(i) for i in path]))
        if isinstance(parms, dict) and parms:
            query_args = \