summaryrefslogtreecommitdiff
path: root/util.py
diff options
context:
space:
mode:
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