Skip to content

Commit

Permalink
fix(editor): fix python3 compatibility
Browse files Browse the repository at this point in the history
Replace deprecated `has_key` with `in` operator.
  • Loading branch information
SuperTux88 committed Sep 23, 2019
1 parent 703548a commit 5da26b6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vim/editor.sls
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -21,4 +21,4 @@ ensure_editor_alternative:
- alternatives: install_editor_alternative
{% endif %}
{% endif %}
{% endif %}
{% endif %}

0 comments on commit 5da26b6

Please sign in to comment.