Skip to content

Commit 95fcb49

Browse files
anntzernfnty
authored andcommitted
syntax: cmp is not a builtin function in Python 3
1 parent 0959f6d commit 95fcb49

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

syntax/python.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,10 +341,10 @@ endif
341341
"
342342

343343
if s:Enabled('g:python_highlight_builtin_funcs')
344-
let s:funcs_re = '__import__|abs|all|any|bin|callable|chr|classmethod|cmp|compile|complex|delattr|dir|divmod|enumerate|eval|filter|format|getattr|globals|hasattr|hash|help|hex|id|input|isinstance|issubclass|iter|len|locals|map|max|min|memoryview|next|oct|open|ord|pow|property|range|repr|reversed|round|setattr|slice|sorted|staticmethod|sum|super|type|vars|zip'
344+
let s:funcs_re = '__import__|abs|all|any|bin|callable|chr|classmethod|compile|complex|delattr|dir|divmod|enumerate|eval|filter|format|getattr|globals|hasattr|hash|help|hex|id|input|isinstance|issubclass|iter|len|locals|map|max|min|memoryview|next|oct|open|ord|pow|property|range|repr|reversed|round|setattr|slice|sorted|staticmethod|sum|super|type|vars|zip'
345345

346346
if s:Python2Syntax()
347-
let s:funcs_re .= '|apply|basestring|buffer|coerce|execfile|file|intern|long|raw_input|reduce|reload|unichr|unicode|xrange'
347+
let s:funcs_re .= '|apply|basestring|buffer|cmp|coerce|execfile|file|intern|long|raw_input|reduce|reload|unichr|unicode|xrange'
348348
if s:Enabled('g:python_print_as_function')
349349
let s:funcs_re .= '|print'
350350
endif

0 commit comments

Comments
 (0)