Return the indent size, in spaces, at the start of a line of text.
(line)
| 765 | |
| 766 | # -------------------------------------------------- source code extraction |
| 767 | def indentsize(line): |
| 768 | """Return the indent size, in spaces, at the start of a line of text.""" |
| 769 | expline = line.expandtabs() |
| 770 | return len(expline) - len(expline.lstrip()) |
| 771 | |
| 772 | def _findclass(func): |
| 773 | cls = sys.modules.get(func.__module__) |
no test coverage detected