summaryrefslogtreecommitdiff
path: root/util.py
diff options
context:
space:
mode:
authorAnthon van der Neut <anthon@mnt.org>2020-09-04 16:24:53 +0200
committerAnthon van der Neut <anthon@mnt.org>2020-09-04 16:24:53 +0200
commit82b1c1cca63b6d94e28db6f1625be59efbe93c6f (patch)
tree806cf30644a4bb076ef009f6dca056fbf5a54d27 /util.py
parente75425c94b63f376e0de91d28bc382fab6700749 (diff)
downloadruamel.yaml-82b1c1cca63b6d94e28db6f1625be59efbe93c6f.tar.gz
update links in doc0.16.12
Diffstat (limited to 'util.py')
-rw-r--r--util.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/util.py b/util.py
index 3eb7d76..1788254 100644
--- a/util.py
+++ b/util.py
@@ -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