Add the given number of space characters to the beginning of every non-blank line in `s`, and return the result.
(s, indent=4)
| 255 | return f.read(), filename |
| 256 | |
| 257 | def _indent(s, indent=4): |
| 258 | """ |
| 259 | Add the given number of space characters to the beginning of |
| 260 | every non-blank line in `s`, and return the result. |
| 261 | """ |
| 262 | # This regexp matches the start of non-blank lines: |
| 263 | return re.sub('(?m)^(?!$)', indent*' ', s) |
| 264 | |
| 265 | def _exception_traceback(exc_info): |
| 266 | """ |
no test coverage detected
searching dependent graphs…