1 def wrap_repr(text, width):
9 text.rfind('(', i, j) + 1,
10 text.rfind('[', i, j) + 1,
11 text.rfind('{', i, j) + 1,
12 text.rfind('.', i, j) + 1,
13 text.rfind(')', i, j + 1),
14 text.rfind(']', i, j + 1),
15 text.rfind('}', i, j + 1),
16 text.rfind(' ', i, j + 1),
20 lines.append(text[i:j] + '\n')
22 while text[i:i + 1] == ' ':