Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add __file__ to the list of builtins.

  • Loading branch information...
commit 5dc4416f6434fd0db12d21b6c1f4d0764c8757fe 1 parent 086d5e1
@kevinw authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 ftplugin/python/pyflakes.vim
View
4 ftplugin/python/pyflakes.vim
@@ -85,9 +85,9 @@ def check(buffer):
if vimenc:
contents = contents.decode(vimenc)
- builtins = []
+ builtins = set(['__file__'])
try:
- builtins = set(eval(vim.eval('string(g:pyflakes_builtins)')))
+ builtins.update(set(eval(vim.eval('string(g:pyflakes_builtins)'))))
except Exception:
pass
Please sign in to comment.
Something went wrong with that request. Please try again.