(self, v, separator)
| 120 | return stc + end |
| 121 | |
| 122 | def split(self, v, separator): |
| 123 | result = () |
| 124 | |
| 125 | current = "" |
| 126 | for c in v: |
| 127 | if c in separator: |
| 128 | result += (current + c,) |
| 129 | current = "" |
| 130 | else: |
| 131 | current += c |
| 132 | if len(current) > 0: |
| 133 | result += (current,) |
| 134 | if len(result) == 0: |
| 135 | return ("",) |
| 136 | return result |
| 137 | |
| 138 | def follow(self, x, **kwargs): |
| 139 | v = strip_next_token(x) |
no outgoing calls