From 5da26b69ca3aba36fc7e71cbcb822ac5751f08e3 Mon Sep 17 00:00:00 2001 From: Benjamin Neff Date: Sun, 22 Sep 2019 05:04:55 +0200 Subject: [PATCH] fix(editor): fix python3 compatibility Replace deprecated `has_key` with `in` operator. --- vim/editor.sls | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vim/editor.sls b/vim/editor.sls index 44d15f5..8fb621e 100644 --- a/vim/editor.sls +++ b/vim/editor.sls @@ -3,9 +3,9 @@ include: - vim -{% if vim.has_key('alternatives') %} +{% if 'alternatives' in vim %} {% set alt = vim.alternatives %} - {% if alt.has_key('link') and alt.has_key('path') and alt.has_key('priority') %} + {% if 'link' in alt and 'path' in alt and 'priority' in alt %} {% if salt['alternatives.show_current']('editor') != alt.path %} install_editor_alternative: alternatives.install: @@ -21,4 +21,4 @@ ensure_editor_alternative: - alternatives: install_editor_alternative {% endif %} {% endif %} -{% endif %} \ No newline at end of file +{% endif %}