(text)
| 45 | return answer |
| 46 | |
| 47 | def _split_paragraphs(text): |
| 48 | answer = [] |
| 49 | paragraph = "" |
| 50 | if isinstance(text, bytes): |
| 51 | text = text.decode("utf-8") |
| 52 | for line in text.splitlines(): |
| 53 | if line == "": |
| 54 | answer.append(paragraph) |
| 55 | paragraph = "" |
| 56 | else: |
| 57 | paragraph += line + "\n" |
| 58 | answer.append(paragraph) |
| 59 | return answer |
| 60 | |
| 61 | paragraphs = [ |
| 62 | p |
no outgoing calls
no test coverage detected