~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/scripts/utilities/warninghandler.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-06-24 11:10:43 UTC
  • mfrom: (13269.2.18 xxx-cleanup)
  • Revision ID: launchpad@pqm.canonical.com-20110624111043-gjqvesp19o25yxzt
[r=jcsackett][no-qa] Many XXX cleanups.

Show diffs side-by-side

added added

removed removed

Lines of Context:
158
158
    if file is None:
159
159
        file = sys.stderr
160
160
    stream = StringIO.StringIO()
161
 
    # XXX: JonathanLange 2010-07-27: When Launchpad ceases supporting Python
162
 
    # 2.5, pass on the optional 'line' parameter.
163
 
    old_show_warning(message, category, filename, lineno, stream)
 
161
    old_show_warning(message, category, filename, lineno, stream, line=line)
164
162
    warning_message = stream.getvalue()
165
163
    important_info = find_important_info()
166
164