Permalink
Browse files

Add __file__ to the list of builtins.

  • Loading branch information...
1 parent 086d5e1 commit 5dc4416f6434fd0db12d21b6c1f4d0764c8757fe @kevinw committed Nov 30, 2010
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

0 comments on commit 5dc4416

Please sign in to comment.