import pedant should display line number information

Bug #503151 reported by Jonathan Lange
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Launchpad itself
Triaged
Low
Unassigned

Bug Description

Currently, the import pedant makes warnings like:

"""
You should not import IDistribution from lp._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 lp._schema_circular_imports import IDistribution
"""

or even:

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

Colin Watson (cjwatson)
summary: - import fascist should display line number information
+ import pedant should display line number information
description: updated
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.