Skip to content
This repository
Browse code

Add __file__ to the list of builtins.

  • Loading branch information...
commit 5dc4416f6434fd0db12d21b6c1f4d0764c8757fe 1 parent 086d5e1
Kevin Watters authored November 30, 2010

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  ftplugin/python/pyflakes.vim
4  ftplugin/python/pyflakes.vim
@@ -85,9 +85,9 @@ def check(buffer):
85 85
     if vimenc:
86 86
         contents = contents.decode(vimenc)
87 87
 
88  
-    builtins = []
  88
+    builtins = set(['__file__'])
89 89
     try:
90  
-        builtins = set(eval(vim.eval('string(g:pyflakes_builtins)')))
  90
+        builtins.update(set(eval(vim.eval('string(g:pyflakes_builtins)'))))
91 91
     except Exception:
92 92
         pass
93 93
 

0 notes on commit 5dc4416

Please sign in to comment.
Something went wrong with that request. Please try again.