Did I find the right examples for you? yes no      Crawl my project      Python Jobs

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

src/a/n/antisocial-HEAD/ve/lib/python2.7/site-packages/requests/utils.py   antisocial(Download)
        # latin-1 is the most conservative encoding used on the web. Anyone
        # who needs more can encode to a byte-string before calling
        return headers.encode("latin-1")
    elif headers is None:
        return headers

src/w/e/webassets2-0.10.dev-fork-renderer.7/src/webassets/filter/compass.py   webassets2(Download)
            elif isinstance(val, six.text_type) and not six.PY3:
                # remove unicode indicator in python2 unicode string
                return repr(val.encode('utf-8'))
            # works fine with strings and lists
            return repr(val)

src/w/e/webassets-HEAD/src/webassets/filter/compass.py   webassets(Download)
            elif isinstance(val, six.text_type) and not six.PY3:
                # remove unicode indicator in python2 unicode string
                return repr(val.encode('utf-8'))
            # works fine with strings and lists
            return repr(val)

src/a/l/AlfredWorkflow.com-HEAD/Sources/Workflows/Toggl-Time-Tracking/alp/request/requests/utils.py   AlfredWorkflow.com(Download)
        # latin-1 is the most conservative encoding used on the web. Anyone
        # who needs more can encode to a byte-string before calling
        return headers.encode("latin-1")
    elif headers is None:
        return headers

src/a/l/AlfredWorkflow.com-HEAD/Sources/Workflows/Rotten-Tomatoes/PyAl/Request/requests/utils.py   AlfredWorkflow.com(Download)
        # latin-1 is the most conservative encoding used on the web. Anyone
        # who needs more can encode to a byte-string before calling
        return headers.encode("latin-1")
    elif headers is None:
        return headers

src/a/l/AlfredWorkflow.com-HEAD/Sources/Workflows/KindleBookstore/PyAl/Request/requests/utils.py   AlfredWorkflow.com(Download)
        # latin-1 is the most conservative encoding used on the web. Anyone
        # who needs more can encode to a byte-string before calling
        return headers.encode("latin-1")
    elif headers is None:
        return headers

src/a/l/AlfredWorkflow.com-HEAD/Sources/Workflows/delicious/alp/request/requests/utils.py   AlfredWorkflow.com(Download)
        # latin-1 is the most conservative encoding used on the web. Anyone
        # who needs more can encode to a byte-string before calling
        return headers.encode("latin-1")
    elif headers is None:
        return headers

src/a/l/AlfredWorkflow.com-HEAD/Sources/Workflows/Command-Help/alp/request/requests/utils.py   AlfredWorkflow.com(Download)
        # latin-1 is the most conservative encoding used on the web. Anyone
        # who needs more can encode to a byte-string before calling
        return headers.encode("latin-1")
    elif headers is None:
        return headers

src/a/l/AlfredWorkflow.com-HEAD/Sources/Workflows/Alfred-Time-Keeper/PyAl/Request/requests/utils.py   AlfredWorkflow.com(Download)
        # latin-1 is the most conservative encoding used on the web. Anyone
        # who needs more can encode to a byte-string before calling
        return headers.encode("latin-1")
    elif headers is None:
        return headers

src/k/a/ka-lite-HEAD/python-packages/requests/utils.py   ka-lite(Download)
        # latin-1 is the most conservative encoding used on the web. Anyone
        # who needs more can encode to a byte-string before calling
        return headers.encode("latin-1")
    elif headers is None:
        return headers

  1 | 2 | 3 | 4 | 5 | 6  Next