pycomplete: Imports not found, error when no symbol

Bug #1019791 reported by Urs Fleisch
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-mode.el
Fix Released
Medium
Andreas Roehler

Bug Description

When a "from ... import" statement contains a dot, (e.g. "from PyQt4.QtGui import QMainWindow"), it is not recognized by py-find-global-imports.

When pycomplete is used on a file, and then a Python file in a different directory is opened, its local imports are not loaded.

When no symbol is found (e.g. trying to complete "[].ap" an error occurs).

The attached patch fixes these problems.

Revision history for this message
Urs Fleisch (ufleisch) wrote :
Changed in python-mode:
assignee: nobody → Andreas Roehler (a-roehler)
milestone: none → 6.1.0
importance: Undecided → Medium
Revision history for this message
Andreas Roehler (a-roehler) wrote :

patch committed, thanks

Changed in python-mode:
status: New → Fix Committed
Changed in python-mode:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.