Merge lp:~edwin-grubbs/launchpad/need_from_future_import_with_statement into lp:launchpad

Proposed by Edwin Grubbs
Status: Merged
Merged at revision: 11267
Proposed branch: lp:~edwin-grubbs/launchpad/need_from_future_import_with_statement
Merge into: lp:launchpad
Diff against target: 10 lines (+2/-0)
1 file modified
lib/lp/code/browser/tests/test_sourcepackagerecipe.py (+2/-0)
To merge this branch: bzr merge lp:~edwin-grubbs/launchpad/need_from_future_import_with_statement
Reviewer Review Type Date Requested Status
Launchpad code reviewers Pending
Review via email: mp+31458@code.launchpad.net

Description of the change

Buildbot puked on a with-statement, since it's running python2.5. It needs to import it from __future__.

https://lpbuildbot.canonical.com/builders/lp/builds/1113/steps/shell_7/logs/summary

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'lib/lp/code/browser/tests/test_sourcepackagerecipe.py'
2--- lib/lp/code/browser/tests/test_sourcepackagerecipe.py 2010-07-30 13:23:44 +0000
3+++ lib/lp/code/browser/tests/test_sourcepackagerecipe.py 2010-07-31 15:14:50 +0000
4@@ -4,6 +4,8 @@
5
6 """Tests for the source package recipe view classes and templates."""
7
8+from __future__ import with_statement
9+
10 __metaclass__ = type
11
12