diff options
author | Anthon van der Neut <anthon@mnt.org> | 2020-09-04 16:24:53 +0200 |
---|---|---|
committer | Anthon van der Neut <anthon@mnt.org> | 2020-09-04 16:24:53 +0200 |
commit | 82b1c1cca63b6d94e28db6f1625be59efbe93c6f (patch) | |
tree | 806cf30644a4bb076ef009f6dca056fbf5a54d27 /util.py | |
parent | e75425c94b63f376e0de91d28bc382fab6700749 (diff) | |
download | ruamel.yaml-82b1c1cca63b6d94e28db6f1625be59efbe93c6f.tar.gz |
update links in doc0.16.12
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 |