kevinw/pyflakes-vim — pull request #53 by heavenshell (2012-01-12 14:33:29+00:00)
Title: Fix AttributeError: 'NoneType' when file name not set.

Hi,

I've got errors when buffer name is not set.

1. Run MacVim.app
2. :set ft=python
3. input like `aaa = bbb`
4. Raise exception
Error detected while processing function 146_RunPyflakes:
line 45:

When buffer name does not set, `buffer.name` is `None`.
`checker.Checker(tree, filename)`'s filename arg excepted `'(none)'`.

This patch set `'(none)'` to filename when no buffer name.

Regards,