Rules: indentation: Fix B_SEQ instead of B_ENT

For example in this case, the scalar's parent is a B_ENT (only its
grandparent is a B_SEQ):

    - >
        multi
        line
This commit is contained in:
Adrien Vergé
2016-03-22 20:27:56 +01:00
parent 44236077dd
commit f9198b7a9b

View File

@@ -233,7 +233,7 @@ def check_scalar_indentation(conf, token, context):
elif token.style in ('"', "'"):
return token.start_mark.column + 1
elif token.style in ('>', '|'):
if context['stack'][-1].type == B_SEQ:
if context['stack'][-1].type == B_ENT:
# - >
# multi
# line