Did I find the right examples for you? yes no

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

        def rstrip(component):
    if isinstance(component, TextComponent):
        return component.rstrip()
    return component
        


src/w/h/whiff-1.1/whiff/stream.py   whiff(Download)
            if components:
                components[0] = textcomponent.lstrip(components[0])
                components[-1] = textcomponent.rstrip(components[-1])
        # this forces materialization of components
        # (no laziness here) in order to force calls to start_response