Return a string guaranteed to be unicode from the content of the file at location. The whole file content is returned at once, which may be a problem for very large files.
(location, decrlf=False)
| 340 | |
| 341 | |
| 342 | def unicode_text(location, decrlf=False): |
| 343 | """ |
| 344 | Return a string guaranteed to be unicode from the content of the file at |
| 345 | location. The whole file content is returned at once, which may be a |
| 346 | problem for very large files. |
| 347 | """ |
| 348 | return u' '.join(unicode_text_lines(location, decrlf=decrlf)) |
| 349 | |
| 350 | |
| 351 | def is_source(location): |
no test coverage detected