Return the minimum indentation of any non-blank line in `s`
(self, s)
| 804 | _INDENT_RE = re.compile(r'^([ ]*)(?=\S)', re.MULTILINE) |
| 805 | |
| 806 | def _min_indent(self, s): |
| 807 | "Return the minimum indentation of any non-blank line in `s`" |
| 808 | indents = [len(indent) for indent in self._INDENT_RE.findall(s)] |
| 809 | if len(indents) > 0: |
| 810 | return min(indents) |
| 811 | else: |
| 812 | return 0 |
| 813 | |
| 814 | def _check_prompt_blank(self, lines, indent, name, lineno): |
| 815 | """ |