Comment 0 for bug 503151

Revision history for this message
Jonathan Lange (jml) wrote : import fascist should display line number information

Currently, the import fascist makes warnings like:

"""
You should not import IDistribution from canonical.launchpad.interfaces._schema_circular_imports:
   lp.bugs.browser.bugtarget
"""

If it included the file name and line number of the offending import, it would be much easier to fix the warning, particularly if it used an Emacs-friendly format like:

"""
lib/lp/bugs/browser/bugtarget.py:44: from canonical.launchpad.interfaces._schema_circular_imports import IDistribution
"""

or even:

"""
lib/lp/bugs/browser/bugtarget.py:44:
  from canonical.launchpad.interfaces._schema_circular_imports import IDistribution
  IDistribution not exported from _schema_circular_imports
"""