Did I find the right examples for you? yes no

All Samples(1)  |  Call(0)  |  Derive(0)  |  Import(1)

src/g/i/GinGin-1.0.1/GinGin/tools.py   GinGin(Download)
from config import GINGIN_ENCODING
 
def list_pair_to_pairs_list(l1, l2):
    assert(len(l1) == len(l2))
    return [(l1[i], l2[i]) for i in range(len(l1))]
def hack_str(s):
    if isinstance(s, unicode):
	return s.encode(GINGIN_ENCODING)
    return str(s)
 
def redirect(ofo, url):
    ofo.write('Location: %s\n' % (url,))
    ofo.write('Content-Type: text/html; charset=' + GINGIN_ENCODING + '\n')