Open for text reading the *resource* within *package*.
(anchor, *path_names, encoding=_MISSING, errors='strict')
| 14 | |
| 15 | |
| 16 | def open_text(anchor, *path_names, encoding=_MISSING, errors='strict'): |
| 17 | """Open for text reading the *resource* within *package*.""" |
| 18 | encoding = _get_encoding_arg(path_names, encoding) |
| 19 | resource = _get_resource(anchor, path_names) |
| 20 | return resource.open('r', encoding=encoding, errors=errors) |
| 21 | |
| 22 | |
| 23 | def read_binary(anchor, *path_names): |
nothing calls this directly
no test coverage detected
searching dependent graphs…