conditional imports can't resolve alias
Brought to you by:
fabioz
Say you have something like this:
try:
import unittest2 as unittest
except ImportError:
import unittest
Autocomplete and Ctrl + Mouse 1 resolves to the unittest module in the stdlib, but unittest2.__init__ inside site-packages is expected.
I'm using Pydev 2.0, on Mac OS X 10.6.7, Eclipse 3.6.2, and running a Virutalenv interpreter.