+++ a/runtime/autoload/pythoncomplete.vim	2009-03-02 16:41:25.000000000 -0300
--- runtime/autoload/pythoncomplete.vim	2009-02-21 14:21:41.000000000 -0300
@@ -305,12 +305,12 @@
         # hopefully this name is unique enough...
         str = '"""'+self.docstr+'"""\n'
         for l in self.locals:
-            if l.startswith('import'): str += l+'\n'
+            if l.startswith('import') or l.startswith('from'): str += l+'\n'
         str += 'class _PyCmplNoType:\n    def __getattr__(self,name):\n        return None\n'
         for sub in self.subscopes:
             str += sub.get_code()
         for l in self.locals:
-            if not l.startswith('import'): str += l+'\n'
+            if not (l.startswith('import') or l.startswith('from')): str += l+'\n'
 
         return str
 
