Do not use has_key in snippets, as this is no longer available in python3.

This commit is contained in:
Holger Rapp 2013-12-15 12:32:04 +01:00
parent cb15778473
commit 44fd0c704a

View File

@ -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