Do not use has_key in snippets, as this is no longer available in python3.
This commit is contained in:
parent
cb15778473
commit
44fd0c704a
@ -57,7 +57,7 @@ def _get_comment_format():
|
|||||||
|
|
||||||
ft = vim.eval("&filetype")
|
ft = vim.eval("&filetype")
|
||||||
# check if the comment dict has the format for the current file
|
# check if the comment dict has the format for the current file
|
||||||
if _commentDict.has_key(ft):
|
if ft in _commentDict:
|
||||||
return _commentDict[ft]
|
return _commentDict[ft]
|
||||||
|
|
||||||
# otherwise parse vim's comments and add it for later use
|
# otherwise parse vim's comments and add it for later use
|
||||||
|
Loading…
Reference in New Issue
Block a user