Add the given number of space characters to the beginning of every non-blank line in `s`, and return the result.
(s, indent=4)
| 234 | return f.read(), filename |
| 235 | |
| 236 | def _indent(s, indent=4): |
| 237 | """ |
| 238 | Add the given number of space characters to the beginning of |
| 239 | every non-blank line in `s`, and return the result. |
| 240 | """ |
| 241 | # This regexp matches the start of non-blank lines: |
| 242 | return re.sub('(?m)^(?!$)', indent*' ', s) |
| 243 | |
| 244 | def _exception_traceback(exc_info): |
| 245 | """ |
no test coverage detected