[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
python-find-imports fails on multi-line import statements
From: |
Michael Droettboom |
Subject: |
python-find-imports fails on multi-line import statements |
Date: |
Fri, 7 Sep 2007 13:59:53 -0400 |
Python allows the '\' character to be used to break statements onto
multiple lines.
If I have a group of import statements like
from foo import this, that, other_thing \
and_another_thing
import sys
python-find-imports parses this into
from foo import this, that, other_thing \
import sys
When python-complete-symbol is called and this is passed to complete()
in emacs.py, for instance, it executes this string, which contains a
syntax error, and the autocompletion fails.
I imagine this can be fixed by tinkering with the regular
expressions/filtering in python-find-imports, but I'm not much of an
emacs lisp hacker.
Cheers,
Mike
--
Michael Droettboom
http://www.droettboom.com/
- python-find-imports fails on multi-line import statements,
Michael Droettboom <=