Did I find the right examples for you? yes no

All Samples(12)  |  Call(6)  |  Derive(0)  |  Import(6)

        def unicode_urlencode(params):
    if not params:
        return u''
    if isinstance(params, dict):
        params = params.items()
    return urllib.urlencode([(
                k, 
                isinstance(v, unicode) and v.encode('utf-8') or v
            ) for k, v in params
        ]
    )
        


src/c/l/close.consumer-0.2.2/src/close/consumer/base.py   close.consumer(Download)
import httplib
 
from utils import generate_hash, generate_auth_header, unicode_urlencode
 
class ChunkReadingMixin(object):
        self.port = port
        self.path = path
        self.body = unicode_urlencode(params)
        if username and password:
            headers['Authorization'] = generate_auth_header(username, password)

src/c/l/close.consumer-HEAD/src/close/consumer/base.py   close.consumer(Download)
import httplib
 
from utils import generate_hash, generate_auth_header, unicode_urlencode
 
class ChunkReadingMixin(object):
        self.port = port
        self.path = path
        self.body = unicode_urlencode(params)
        self.secure = secure
        if username and password:

src/c/l/close.consumer-0.2.2/src/close/consumer/process.py   close.consumer(Download)
import urllib2
 
from utils import generate_auth_header, unicode_urlencode
 
class PostingParsingQueueProcessor(object):
    def _post(self, items):
        data = unicode_urlencode({'items': items})
        request = urllib2.Request(
            self.url, 
            data=data,

src/c/l/close.consumer-HEAD/src/close/consumer/process.py   close.consumer(Download)
import urllib2
 
from utils import generate_auth_header, unicode_urlencode
 
class PostingParsingQueueProcessor(object):
    def _post(self, items):
        data = unicode_urlencode({'items': items})
        request = urllib2.Request(
            self.url, 
            data=data,

src/t/o/torque-0.4.5/src/torque/processor.py   torque(Download)
 
from client import get_task
from utils import do_nothing, unicode_urlencode
 
# external config you may want to provide unless you're processing
        """
 
        request = urllib2.Request(url, unicode_urlencode(params))
        response = None
        try: