diff options
Diffstat (limited to 'util.py')
-rw-r--r-- | util.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -68,11 +68,11 @@ def load_yaml_guess_indent(stream, **kw): """ from .main import round_trip_load - # load a yaml file guess the indentation, if you use TABs ... - def leading_spaces(l): + # load a YAML document, guess the indentation, if you use TABs you're on your own + def leading_spaces(line): # type: (Any) -> int idx = 0 - while idx < len(l) and l[idx] == ' ': + while idx < len(line) and line[idx] == ' ': idx += 1 return idx |