Determines the leading whitespace that could be removed from all the lines.
(lines)
| 170 | |
| 171 | |
| 172 | def _get_indent(lines): |
| 173 | """ |
| 174 | Determines the leading whitespace that could be removed from all the lines. |
| 175 | """ |
| 176 | indent = sys.maxsize |
| 177 | for line in lines: |
| 178 | content = len(line.lstrip()) |
| 179 | if content: |
| 180 | indent = min(indent, len(line) - content) |
| 181 | if indent == sys.maxsize: |
| 182 | indent = 0 |
| 183 | return indent |
| 184 | |
| 185 | |
| 186 | def deprecate(*args, **kwargs): |