Example #1
0
def str_lstrip__Rope_None(space, w_self, w_chars):
    return W_RopeObject(rope.strip(w_self._node, left=True, right=False))
Example #2
0
def str_rstrip__Rope_None(space, w_self, w_chars):
    return W_RopeObject(rope.strip(w_self._node, False, True))
Example #3
0
def str_lstrip__Rope_Rope(space, w_self, w_chars):
    return W_RopeObject(rope.strip(w_self._node, True, False,
                                   _contains, w_chars._node.flatten_string()))
Example #4
0
def unicode_rstrip__RopeUnicode_None(space, w_self, w_chars):
    return W_RopeUnicodeObject(rope.strip(w_self._node, False, True, _isspace))
Example #5
0
def unicode_rstrip__RopeUnicode_RopeUnicode(space, w_self, w_chars):
    return W_RopeUnicodeObject(rope.strip(w_self._node, False, True, _contains,
                               w_chars._node.flatten_unicode()))
Example #6
0
def unicode_rstrip__RopeUnicode_RopeUnicode(space, w_self, w_chars):
    return W_RopeUnicodeObject(
        rope.strip(w_self._node, False, True, _contains,
                   w_chars._node.flatten_unicode()))
Example #7
0
def unicode_rstrip__RopeUnicode_None(space, w_self, w_chars):
    return W_RopeUnicodeObject(rope.strip(w_self._node, False, True, _isspace))
Example #8
0
def str_lstrip__Rope_None(space, w_self, w_chars):
    return W_RopeObject(rope.strip(w_self._node, left=True, right=False))
Example #9
0
def str_lstrip__Rope_Rope(space, w_self, w_chars):
    return W_RopeObject(rope.strip(w_self._node, True, False,
                                   _contains, w_chars._node.flatten_string()))
Example #10
0
def str_rstrip__Rope_None(space, w_self, w_chars):
    return W_RopeObject(rope.strip(w_self._node, False, True))