remove empty lines
(text)
| 185 | |
| 186 | |
| 187 | def remove_empty_lines(text): |
| 188 | """remove empty lines""" |
| 189 | assert (len(text) > 0) |
| 190 | assert (isinstance(text, list)) |
| 191 | text = [t.strip() for t in text] |
| 192 | if "" in text: |
| 193 | text.remove("") |
| 194 | return text |
| 195 | |
| 196 | |
| 197 | class TextGrid(object): |
no outgoing calls
no test coverage detected