Did I find the right examples for you? yes no

All Samples(1)  |  Call(0)  |  Derive(0)  |  Import(1)
str(object='') -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.

src/m/i/microlathe-HEAD/src/proxy.py   microlathe(Download)
import requests
from config import PROXY_HOST, PROXY_URL
response_blacklist = (
def swap_request_host(s):
    if s.startswith('http') and PROXY_URL.startswith('https'):
        s = s.replace('http://', 'https://', 1)
    return s.replace(request.host, PROXY_HOST)
def swap_response_host(s):
    if s.startswith('https'):
        s = s.replace('https://', 'http://', 1)
    return s.replace(PROXY_HOST, request.host)