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