(path, strip=False)
| 102 | |
| 103 | |
| 104 | def file_bytes(path, strip=False): |
| 105 | # 'open' is not avaiable yet. |
| 106 | with FileIO(path, 'r') as f: |
| 107 | data = f.read() |
| 108 | if strip: |
| 109 | return data.strip() |
| 110 | return data |
| 111 | |
| 112 | |
| 113 | def _guess_source_root(): |
no test coverage detected