mbadran/headlights — Issue #15: menu problem
Author: phildobbin
Created: 2012-01-05 03:41:12+00:00
State: open

Hi.

Headlights works fine in MacVim but I've no menus set in vim & when I start vim I get pages of errors. Debug mode shows this:

`Traceback (most recent call last):
File "", line 1, in
File "/users/dobbin/.vim/bundle/Headlights/plugin/headlights.py", line 55, in __init__
self.attach_menus()
File "/users/dobbin/.vim/bundle/Headlights/plugin/headlights.py", line 585, in attach_menus
self.do_debug()
File "/users/dobbin/.vim/bundle/Headlights/plugin/headlights.py", line 606, in do_debug
log_file = tempfile.NamedTemporaryFile(prefix=LOGNAME_PREFIX, suffix=LOGNAME_SUFFIX, delete=False)
TypeError: NamedTemporaryFile() got an unexpected keyword argument 'delete'
Traceback (most recent call last):
File "", line 1, in
File "/users/dobbin/.vim/bundle/Headlights/plugin/headlights.py", line 55, in __init__
self.attach_menus()
File "/users/dobbin/.vim/bundle/Headlights/plugin/headlights.py", line 585, in attach_menus
self.do_debug()
File "/users/dobbin/.vim/bundle/Headlights/plugin/headlights.py", line 606, in do_debug
log_file = tempfile.NamedTemporaryFile(prefix=LOGNAME_PREFIX, suffix=LOGNAME_SUFFIX, delete=False)
TypeError: NamedTemporaryFile() got an unexpected keyword argument 'delete'`

Any help appreciated...