Merge lp:~allenap/launchpad/remove-with-statement into lp:launchpad

Proposed by Gavin Panella
Status: Merged
Approved by: Jonathan Lange
Approved revision: no longer in the source branch.
Merged at revision: 11802
Proposed branch: lp:~allenap/launchpad/remove-with-statement
Merge into: lp:launchpad
Diff against target: 1278 lines (+0/-194)
97 files modified
lib/canonical/buildd/pottery/intltool.py (+0/-2)
lib/canonical/config/fixture.py (+0/-1)
lib/canonical/launchpad/daemons/tachandler.py (+0/-2)
lib/canonical/launchpad/ftests/test_system_documentation.py (+0/-4)
lib/canonical/launchpad/mail/tests/test_handlers.py (+0/-2)
lib/canonical/launchpad/readonly.py (+0/-2)
lib/canonical/launchpad/scripts/oops.py (+0/-2)
lib/canonical/launchpad/testing/pages.py (+0/-3)
lib/canonical/launchpad/testing/systemdocs.py (+0/-3)
lib/canonical/launchpad/webapp/login.py (+0/-2)
lib/canonical/launchpad/webapp/tests/test_errorlog.py (+0/-1)
lib/canonical/launchpad/webapp/tests/test_login.py (+0/-2)
lib/canonical/launchpad/windmill/tests/test_widgets.py (+0/-2)
lib/canonical/testing/parallel.py (+0/-2)
lib/canonical/testing/tests/test_parallel.py (+0/-2)
lib/devscripts/ec2test/entrypoint.py (+0/-2)
lib/devscripts/ec2test/remote.py (+0/-2)
lib/lp/answers/browser/tests/test_questiontarget.py (+0/-2)
lib/lp/archiveuploader/tests/__init__.py (+0/-2)
lib/lp/bugs/browser/tests/test_bugtask.py (+0/-2)
lib/lp/bugs/browser/tests/test_bugtracker_views.py (+0/-2)
lib/lp/bugs/model/tests/test_bug.py (+0/-2)
lib/lp/bugs/scripts/checkwatches/base.py (+0/-2)
lib/lp/bugs/scripts/checkwatches/bugwatchupdater.py (+0/-2)
lib/lp/bugs/scripts/checkwatches/core.py (+0/-2)
lib/lp/bugs/scripts/checkwatches/remotebugupdater.py (+0/-2)
lib/lp/bugs/scripts/checkwatches/tests/test_base.py (+0/-2)
lib/lp/bugs/scripts/checkwatches/tests/test_core.py (+0/-2)
lib/lp/bugs/tests/test_bugbranch.py (+0/-2)
lib/lp/buildmaster/model/packagebuild.py (+0/-2)
lib/lp/buildmaster/tests/test_packagebuild.py (+0/-2)
lib/lp/code/browser/tests/test_branch.py (+0/-2)
lib/lp/code/browser/tests/test_branchlisting.py (+0/-2)
lib/lp/code/browser/tests/test_codereviewcomment.py (+0/-2)
lib/lp/code/browser/tests/test_codereviewvote.py (+0/-2)
lib/lp/code/browser/tests/test_sourcepackagerecipe.py (+0/-2)
lib/lp/code/mail/codehandler.py (+0/-3)
lib/lp/code/mail/tests/test_codehandler.py (+0/-2)
lib/lp/code/model/branchmergeproposaljob.py (+0/-3)
lib/lp/code/model/directbranchcommit.py (+0/-2)
lib/lp/code/model/tests/test_branch.py (+0/-2)
lib/lp/code/model/tests/test_branchjob.py (+0/-2)
lib/lp/code/model/tests/test_branchmergeproposal.py (+0/-2)
lib/lp/code/model/tests/test_branchmergeproposaljobs.py (+0/-2)
lib/lp/code/model/tests/test_branchsubscription.py (+0/-2)
lib/lp/code/model/tests/test_diff.py (+0/-2)
lib/lp/code/model/tests/test_recipebuilder.py (+0/-2)
lib/lp/code/model/tests/test_sourcepackagerecipe.py (+0/-2)
lib/lp/code/model/tests/test_sourcepackagerecipebuild.py (+0/-2)
lib/lp/code/scripts/tests/test_scan_branches.py (+0/-2)
lib/lp/code/scripts/tests/test_sendbranchmail.py (+0/-2)
lib/lp/code/xmlrpc/tests/test_branch.py (+0/-2)
lib/lp/codehosting/codeimport/tests/servers.py (+0/-2)
lib/lp/codehosting/scanner/tests/test_buglinks.py (+0/-2)
lib/lp/codehosting/scanner/tests/test_bzrsync.py (+0/-2)
lib/lp/codehosting/scanner/tests/test_mergedetection.py (+0/-2)
lib/lp/codehosting/tests/test_branchdistro.py (+0/-2)
lib/lp/codehosting/tests/test_jobs.py (+0/-2)
lib/lp/codehosting/tests/test_sftp.py (+0/-1)
lib/lp/registry/browser/tests/test_distroseriesdifference_views.py (+0/-2)
lib/lp/registry/browser/tests/test_distroseriesdifference_webservice.py (+0/-2)
lib/lp/registry/browser/tests/test_mailinglists.py (+0/-2)
lib/lp/registry/browser/tests/test_milestone.py (+0/-2)
lib/lp/registry/browser/tests/test_peoplemerge.py (+0/-2)
lib/lp/registry/browser/tests/test_series_views.py (+0/-2)
lib/lp/registry/model/person.py (+0/-2)
lib/lp/registry/tests/test_add_member.py (+0/-2)
lib/lp/registry/tests/test_distroseries.py (+0/-2)
lib/lp/registry/tests/test_distroseriesdifference.py (+0/-2)
lib/lp/registry/tests/test_mailinglist.py (+0/-2)
lib/lp/registry/tests/test_mailinglistapi.py (+0/-2)
lib/lp/registry/tests/test_person.py (+0/-2)
lib/lp/registry/tests/test_sourcepackage.py (+0/-2)
lib/lp/services/features/tests/test_db_settings.py (+0/-1)
lib/lp/services/features/tests/test_flags.py (+0/-1)
lib/lp/services/job/runner.py (+0/-1)
lib/lp/services/job/tests/test_runner.py (+0/-2)
lib/lp/services/log/tests/test_uniquefileallocator.py (+0/-1)
lib/lp/services/mailman/tests/test_lpmoderate.py (+0/-2)
lib/lp/services/spriteutils.py (+0/-2)
lib/lp/services/utils.py (+0/-2)
lib/lp/soyuz/browser/tests/test_archive_webservice.py (+0/-2)
lib/lp/soyuz/scripts/tests/test_queue.py (+0/-2)
lib/lp/soyuz/tests/test_archive.py (+0/-2)
lib/lp/soyuz/tests/test_archive_subscriptions.py (+0/-2)
lib/lp/soyuz/tests/test_binarypackagebuildbehavior.py (+0/-2)
lib/lp/soyuz/tests/test_copyarchivejob.py (+0/-2)
lib/lp/testing/__init__.py (+0/-3)
lib/lp/testing/_login.py (+0/-2)
lib/lp/testing/factory.py (+0/-2)
lib/lp/testing/tests/test_login.py (+0/-2)
lib/lp/testing/tests/test_testing.py (+0/-2)
lib/lp/translations/pottery/detect_intltool.py (+0/-2)
lib/lp/translations/tests/test_autoapproval.py (+0/-2)
lib/lp/translations/tests/test_pottery_detect_intltool.py (+0/-2)
lib/lp/translations/tests/test_rosetta_branches_script.py (+0/-2)
lib/lp/translations/tests/test_translationimportqueue.py (+0/-2)
To merge this branch: bzr merge lp:~allenap/launchpad/remove-with-statement
Reviewer Review Type Date Requested Status
Jonathan Lange (community) Approve
Review via email: mp+39381@code.launchpad.net

Commit message

Remove with_statement.

Description of the change

Now we're officially on Python 2.6, remove all the with_statement stuff from the tree.

To post a comment you must log in.
Revision history for this message
Jonathan Lange (jml) wrote :

Woot! Thanks.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'lib/canonical/buildd/pottery/intltool.py'
--- lib/canonical/buildd/pottery/intltool.py 2010-06-30 15:46:36 +0000
+++ lib/canonical/buildd/pottery/intltool.py 2010-10-26 15:55:46 +0000
@@ -3,8 +3,6 @@
33
4"""Functions to build PO templates on the build slave."""4"""Functions to build PO templates on the build slave."""
55
6from __future__ import with_statement
7
8__metaclass__ = type6__metaclass__ = type
9__all__ = [7__all__ = [
10 'check_potfiles_in',8 'check_potfiles_in',
119
=== modified file 'lib/canonical/config/fixture.py'
--- lib/canonical/config/fixture.py 2010-10-19 19:23:19 +0000
+++ lib/canonical/config/fixture.py 2010-10-26 15:55:46 +0000
@@ -1,7 +1,6 @@
1# Copyright 2010 Canonical Ltd. This software is licensed under the1# Copyright 2010 Canonical Ltd. This software is licensed under the
2# GNU Affero General Public License version 3 (see the file LICENSE).2# GNU Affero General Public License version 3 (see the file LICENSE).
33
4from __future__ import with_statement
5"""Fixtures related to configs.4"""Fixtures related to configs.
65
7XXX: Robert Collins 2010-10-20 bug=663454 this is in the wrong namespace.6XXX: Robert Collins 2010-10-20 bug=663454 this is in the wrong namespace.
87
=== modified file 'lib/canonical/launchpad/daemons/tachandler.py'
--- lib/canonical/launchpad/daemons/tachandler.py 2010-10-20 18:43:29 +0000
+++ lib/canonical/launchpad/daemons/tachandler.py 2010-10-26 15:55:46 +0000
@@ -1,8 +1,6 @@
1# Copyright 2009-2010 Canonical Ltd. This software is licensed under the1# Copyright 2009-2010 Canonical Ltd. This software is licensed under the
2# GNU Affero General Public License version 3 (see the file LICENSE).2# GNU Affero General Public License version 3 (see the file LICENSE).
33
4from __future__ import with_statement
5
6"""Test harness for TAC (Twisted Application Configuration) files."""4"""Test harness for TAC (Twisted Application Configuration) files."""
75
8__metaclass__ = type6__metaclass__ = type
97
=== modified file 'lib/canonical/launchpad/ftests/test_system_documentation.py'
--- lib/canonical/launchpad/ftests/test_system_documentation.py 2010-10-20 20:51:26 +0000
+++ lib/canonical/launchpad/ftests/test_system_documentation.py 2010-10-26 15:55:46 +0000
@@ -7,8 +7,6 @@
7"""7"""
8# pylint: disable-msg=C01038# pylint: disable-msg=C0103
99
10from __future__ import with_statement
11
12import logging10import logging
13import os11import os
14import unittest12import unittest
@@ -358,8 +356,6 @@
358 one_test = LayeredDocFileSuite(356 one_test = LayeredDocFileSuite(
359 path, setUp=setUp, tearDown=tearDown,357 path, setUp=setUp, tearDown=tearDown,
360 layer=LaunchpadFunctionalLayer,358 layer=LaunchpadFunctionalLayer,
361 # 'icky way of running doctests with __future__ imports
362 globs={'with_statement': with_statement},
363 stdout_logging_level=logging.WARNING)359 stdout_logging_level=logging.WARNING)
364 suite.addTest(one_test)360 suite.addTest(one_test)
365361
366362
=== modified file 'lib/canonical/launchpad/mail/tests/test_handlers.py'
--- lib/canonical/launchpad/mail/tests/test_handlers.py 2010-10-12 01:11:41 +0000
+++ lib/canonical/launchpad/mail/tests/test_handlers.py 2010-10-26 15:55:46 +0000
@@ -1,8 +1,6 @@
1# Copyright 2009 Canonical Ltd. This software is licensed under the1# Copyright 2009 Canonical Ltd. This software is licensed under the
2# GNU Affero General Public License version 3 (see the file LICENSE).2# GNU Affero General Public License version 3 (see the file LICENSE).
33
4from __future__ import with_statement
5
6__metaclass__ = type4__metaclass__ = type
75
8from doctest import DocTestSuite6from doctest import DocTestSuite
97
=== modified file 'lib/canonical/launchpad/readonly.py'
--- lib/canonical/launchpad/readonly.py 2010-08-20 20:31:18 +0000
+++ lib/canonical/launchpad/readonly.py 2010-10-26 15:55:46 +0000
@@ -7,8 +7,6 @@
7named read-only.txt in the root of the Launchpad tree.7named read-only.txt in the root of the Launchpad tree.
8"""8"""
99
10from __future__ import with_statement
11
12__metaclass__ = type10__metaclass__ = type
13__all__ = [11__all__ = [
14 'is_read_only',12 'is_read_only',
1513
=== modified file 'lib/canonical/launchpad/scripts/oops.py'
--- lib/canonical/launchpad/scripts/oops.py 2010-09-09 06:04:24 +0000
+++ lib/canonical/launchpad/scripts/oops.py 2010-10-26 15:55:46 +0000
@@ -3,8 +3,6 @@
33
4"""Module docstring goes here."""4"""Module docstring goes here."""
55
6from __future__ import with_statement
7
8__metaclass__ = type6__metaclass__ = type
97
10__all__ = [8__all__ = [
119
=== modified file 'lib/canonical/launchpad/testing/pages.py'
--- lib/canonical/launchpad/testing/pages.py 2010-10-12 05:32:24 +0000
+++ lib/canonical/launchpad/testing/pages.py 2010-10-26 15:55:46 +0000
@@ -1,8 +1,6 @@
1# Copyright 2009 Canonical Ltd. This software is licensed under the1# Copyright 2009 Canonical Ltd. This software is licensed under the
2# GNU Affero General Public License version 3 (see the file LICENSE).2# GNU Affero General Public License version 3 (see the file LICENSE).
33
4from __future__ import with_statement
5
6"""Testing infrastructure for page tests."""4"""Testing infrastructure for page tests."""
75
8# Stop lint warning about not initializing TestCase parent on6# Stop lint warning about not initializing TestCase parent on
@@ -813,7 +811,6 @@
813 test.globs['print_tag_with_id'] = print_tag_with_id811 test.globs['print_tag_with_id'] = print_tag_with_id
814 test.globs['PageTestLayer'] = PageTestLayer812 test.globs['PageTestLayer'] = PageTestLayer
815 test.globs['stop'] = stop813 test.globs['stop'] = stop
816 test.globs['with_statement'] = with_statement
817 test.globs['ws_uncache'] = ws_uncache814 test.globs['ws_uncache'] = ws_uncache
818815
819816
820817
=== modified file 'lib/canonical/launchpad/testing/systemdocs.py'
--- lib/canonical/launchpad/testing/systemdocs.py 2010-10-03 15:30:06 +0000
+++ lib/canonical/launchpad/testing/systemdocs.py 2010-10-26 15:55:46 +0000
@@ -3,8 +3,6 @@
33
4"""Infrastructure for setting up doctests."""4"""Infrastructure for setting up doctests."""
55
6from __future__ import with_statement
7
8__metaclass__ = type6__metaclass__ = type
9__all__ = [7__all__ = [
10 'default_optionflags',8 'default_optionflags',
@@ -211,7 +209,6 @@
211 test.globs['verifyObject'] = verifyObject209 test.globs['verifyObject'] = verifyObject
212 test.globs['pretty'] = pprint.PrettyPrinter(width=1).pformat210 test.globs['pretty'] = pprint.PrettyPrinter(width=1).pformat
213 test.globs['stop'] = stop211 test.globs['stop'] = stop
214 test.globs['with_statement'] = with_statement
215 test.globs['launchpadlib_for'] = launchpadlib_for212 test.globs['launchpadlib_for'] = launchpadlib_for
216 test.globs['launchpadlib_credentials_for'] = launchpadlib_credentials_for213 test.globs['launchpadlib_credentials_for'] = launchpadlib_credentials_for
217 test.globs['oauth_access_token_for'] = oauth_access_token_for214 test.globs['oauth_access_token_for'] = oauth_access_token_for
218215
=== modified file 'lib/canonical/launchpad/webapp/login.py'
--- lib/canonical/launchpad/webapp/login.py 2010-09-03 16:43:11 +0000
+++ lib/canonical/launchpad/webapp/login.py 2010-10-26 15:55:46 +0000
@@ -2,8 +2,6 @@
2# GNU Affero General Public License version 3 (see the file LICENSE).2# GNU Affero General Public License version 3 (see the file LICENSE).
3"""Stuff to do with logging in and logging out."""3"""Stuff to do with logging in and logging out."""
44
5from __future__ import with_statement
6
7__metaclass__ = type5__metaclass__ = type
86
9from datetime import (7from datetime import (
108
=== modified file 'lib/canonical/launchpad/webapp/tests/test_errorlog.py'
--- lib/canonical/launchpad/webapp/tests/test_errorlog.py 2010-10-13 16:44:44 +0000
+++ lib/canonical/launchpad/webapp/tests/test_errorlog.py 2010-10-26 15:55:46 +0000
@@ -3,7 +3,6 @@
33
4"""Tests for error logging & OOPS reporting."""4"""Tests for error logging & OOPS reporting."""
55
6from __future__ import with_statement
7__metaclass__ = type6__metaclass__ = type
87
9import datetime8import datetime
109
=== modified file 'lib/canonical/launchpad/webapp/tests/test_login.py'
--- lib/canonical/launchpad/webapp/tests/test_login.py 2010-09-03 11:10:09 +0000
+++ lib/canonical/launchpad/webapp/tests/test_login.py 2010-10-26 15:55:46 +0000
@@ -1,6 +1,4 @@
1# Copyright 2009-2010 Canonical Ltd. All rights reserved.1# Copyright 2009-2010 Canonical Ltd. All rights reserved.
2from __future__ import with_statement
3
4# pylint: disable-msg=W01052# pylint: disable-msg=W0105
5"""Test harness for running the new-login.txt tests."""3"""Test harness for running the new-login.txt tests."""
64
75
=== modified file 'lib/canonical/launchpad/windmill/tests/test_widgets.py'
--- lib/canonical/launchpad/windmill/tests/test_widgets.py 2010-08-20 20:31:18 +0000
+++ lib/canonical/launchpad/windmill/tests/test_widgets.py 2010-10-26 15:55:46 +0000
@@ -3,8 +3,6 @@
33
4"""Tests for the Windmill test doubles themselves."""4"""Tests for the Windmill test doubles themselves."""
55
6from __future__ import with_statement
7
8__metaclass__ = type6__metaclass__ = type
97
10from mocker import (8from mocker import (
119
=== modified file 'lib/canonical/testing/parallel.py'
--- lib/canonical/testing/parallel.py 2010-10-16 18:20:17 +0000
+++ lib/canonical/testing/parallel.py 2010-10-26 15:55:46 +0000
@@ -1,8 +1,6 @@
1# Copyright 2010 Canonical Ltd. This software is licensed under the1# Copyright 2010 Canonical Ltd. This software is licensed under the
2# GNU Affero General Public License version 3 (see the file LICENSE).2# GNU Affero General Public License version 3 (see the file LICENSE).
33
4from __future__ import with_statement
5
6"""Parallel test glue."""4"""Parallel test glue."""
75
8__metaclass__ = type6__metaclass__ = type
97
=== modified file 'lib/canonical/testing/tests/test_parallel.py'
--- lib/canonical/testing/tests/test_parallel.py 2010-10-16 18:20:17 +0000
+++ lib/canonical/testing/tests/test_parallel.py 2010-10-26 15:55:46 +0000
@@ -1,8 +1,6 @@
1# Copyright 2010 Canonical Ltd. This software is licensed under the1# Copyright 2010 Canonical Ltd. This software is licensed under the
2# GNU Affero General Public License version 3 (see the file LICENSE).2# GNU Affero General Public License version 3 (see the file LICENSE).
33
4from __future__ import with_statement
5
6"""Parallel test glue."""4"""Parallel test glue."""
75
8__metaclass__ = type6__metaclass__ = type
97
=== modified file 'lib/devscripts/ec2test/entrypoint.py'
--- lib/devscripts/ec2test/entrypoint.py 2010-08-26 04:33:36 +0000
+++ lib/devscripts/ec2test/entrypoint.py 2010-10-26 15:55:46 +0000
@@ -3,8 +3,6 @@
33
4"""The entry point for the 'ec2' utility."""4"""The entry point for the 'ec2' utility."""
55
6from __future__ import with_statement
7
8__metaclass__ = type6__metaclass__ = type
9__all__ = [7__all__ = [
10 'main',8 'main',
119
=== modified file 'lib/devscripts/ec2test/remote.py'
--- lib/devscripts/ec2test/remote.py 2010-09-20 22:44:49 +0000
+++ lib/devscripts/ec2test/remote.py 2010-10-26 15:55:46 +0000
@@ -16,8 +16,6 @@
16 the responsibility of handling the results that `LaunchpadTester` gathers.16 the responsibility of handling the results that `LaunchpadTester` gathers.
17"""17"""
1818
19from __future__ import with_statement
20
21__metatype__ = type19__metatype__ = type
2220
23import datetime21import datetime
2422
=== modified file 'lib/lp/answers/browser/tests/test_questiontarget.py'
--- lib/lp/answers/browser/tests/test_questiontarget.py 2010-10-04 19:50:45 +0000
+++ lib/lp/answers/browser/tests/test_questiontarget.py 2010-10-26 15:55:46 +0000
@@ -3,8 +3,6 @@
33
4"""Test questiontarget views."""4"""Test questiontarget views."""
55
6from __future__ import with_statement
7
8__metaclass__ = type6__metaclass__ = type
97
10import os8import os
119
=== modified file 'lib/lp/archiveuploader/tests/__init__.py'
--- lib/lp/archiveuploader/tests/__init__.py 2010-10-06 11:46:51 +0000
+++ lib/lp/archiveuploader/tests/__init__.py 2010-10-26 15:55:46 +0000
@@ -3,8 +3,6 @@
33
4"""Tests for the archive uploader."""4"""Tests for the archive uploader."""
55
6from __future__ import with_statement
7
8__metaclass__ = type6__metaclass__ = type
97
10__all__ = [8__all__ = [
119
=== modified file 'lib/lp/bugs/browser/tests/test_bugtask.py'
--- lib/lp/bugs/browser/tests/test_bugtask.py 2010-10-07 04:28:17 +0000
+++ lib/lp/bugs/browser/tests/test_bugtask.py 2010-10-26 15:55:46 +0000
@@ -1,8 +1,6 @@
1# Copyright 2009 Canonical Ltd. This software is licensed under the1# Copyright 2009 Canonical Ltd. This software is licensed under the
2# GNU Affero General Public License version 3 (see the file LICENSE).2# GNU Affero General Public License version 3 (see the file LICENSE).
33
4from __future__ import with_statement
5
6__metaclass__ = type4__metaclass__ = type
75
86
97
=== modified file 'lib/lp/bugs/browser/tests/test_bugtracker_views.py'
--- lib/lp/bugs/browser/tests/test_bugtracker_views.py 2010-09-19 23:52:49 +0000
+++ lib/lp/bugs/browser/tests/test_bugtracker_views.py 2010-10-26 15:55:46 +0000
@@ -3,8 +3,6 @@
33
4"""Tests for BugTracker views."""4"""Tests for BugTracker views."""
55
6from __future__ import with_statement
7
8__metaclass__ = type6__metaclass__ = type
97
10from zope.component import getUtility8from zope.component import getUtility
119
=== modified file 'lib/lp/bugs/model/tests/test_bug.py'
--- lib/lp/bugs/model/tests/test_bug.py 2010-10-25 13:46:12 +0000
+++ lib/lp/bugs/model/tests/test_bug.py 2010-10-26 15:55:46 +0000
@@ -1,8 +1,6 @@
1# Copyright 2010 Canonical Ltd. This software is licensed under the1# Copyright 2010 Canonical Ltd. This software is licensed under the
2# GNU Affero General Public License version 3 (see the file LICENSE).2# GNU Affero General Public License version 3 (see the file LICENSE).
33
4from __future__ import with_statement
5
6__metaclass__ = type4__metaclass__ = type
75
8from canonical.testing.layers import DatabaseFunctionalLayer6from canonical.testing.layers import DatabaseFunctionalLayer
97
=== modified file 'lib/lp/bugs/scripts/checkwatches/base.py'
--- lib/lp/bugs/scripts/checkwatches/base.py 2010-08-20 20:31:18 +0000
+++ lib/lp/bugs/scripts/checkwatches/base.py 2010-10-26 15:55:46 +0000
@@ -3,8 +3,6 @@
33
4"""Common classes and functions for the checkwatches system."""4"""Common classes and functions for the checkwatches system."""
55
6from __future__ import with_statement
7
8__metaclass__ = type6__metaclass__ = type
9__all__ = [7__all__ = [
10 'WorkingBase',8 'WorkingBase',
119
=== modified file 'lib/lp/bugs/scripts/checkwatches/bugwatchupdater.py'
--- lib/lp/bugs/scripts/checkwatches/bugwatchupdater.py 2010-10-03 15:30:06 +0000
+++ lib/lp/bugs/scripts/checkwatches/bugwatchupdater.py 2010-10-26 15:55:46 +0000
@@ -3,8 +3,6 @@
33
4"""Classes and logic for the checkwatches BugWatchUpdater."""4"""Classes and logic for the checkwatches BugWatchUpdater."""
55
6from __future__ import with_statement
7
8__metaclass__ = type6__metaclass__ = type
9__all__ = [7__all__ = [
10 'BugWatchUpdater',8 'BugWatchUpdater',
119
=== modified file 'lib/lp/bugs/scripts/checkwatches/core.py'
--- lib/lp/bugs/scripts/checkwatches/core.py 2010-10-03 15:30:06 +0000
+++ lib/lp/bugs/scripts/checkwatches/core.py 2010-10-26 15:55:46 +0000
@@ -3,8 +3,6 @@
33
4"""Classes and logic for the checkwatches cronscript."""4"""Classes and logic for the checkwatches cronscript."""
55
6from __future__ import with_statement
7
8__metaclass__ = type6__metaclass__ = type
9__all__ = [7__all__ = [
10 'BaseScheduler',8 'BaseScheduler',
119
=== modified file 'lib/lp/bugs/scripts/checkwatches/remotebugupdater.py'
--- lib/lp/bugs/scripts/checkwatches/remotebugupdater.py 2010-08-20 20:31:18 +0000
+++ lib/lp/bugs/scripts/checkwatches/remotebugupdater.py 2010-10-26 15:55:46 +0000
@@ -3,8 +3,6 @@
33
4"""Classes and logic for the remote bug updater."""4"""Classes and logic for the remote bug updater."""
55
6from __future__ import with_statement
7
8__metaclass__ = type6__metaclass__ = type
9__all__ = [7__all__ = [
10 'RemoteBugUpdater',8 'RemoteBugUpdater',
119
=== modified file 'lib/lp/bugs/scripts/checkwatches/tests/test_base.py'
--- lib/lp/bugs/scripts/checkwatches/tests/test_base.py 2010-10-04 19:50:45 +0000
+++ lib/lp/bugs/scripts/checkwatches/tests/test_base.py 2010-10-26 15:55:46 +0000
@@ -3,8 +3,6 @@
33
4"""Tests for the `base` module."""4"""Tests for the `base` module."""
55
6from __future__ import with_statement
7
8__metaclass__ = type6__metaclass__ = type
97
10from contextlib import contextmanager8from contextlib import contextmanager
119
=== modified file 'lib/lp/bugs/scripts/checkwatches/tests/test_core.py'
--- lib/lp/bugs/scripts/checkwatches/tests/test_core.py 2010-10-21 04:19:36 +0000
+++ lib/lp/bugs/scripts/checkwatches/tests/test_core.py 2010-10-26 15:55:46 +0000
@@ -2,8 +2,6 @@
2# GNU Affero General Public License version 3 (see the file LICENSE).2# GNU Affero General Public License version 3 (see the file LICENSE).
3"""Checkwatches unit tests."""3"""Checkwatches unit tests."""
44
5from __future__ import with_statement
6
7__metaclass__ = type5__metaclass__ = type
86
9from datetime import datetime7from datetime import datetime
108
=== modified file 'lib/lp/bugs/tests/test_bugbranch.py'
--- lib/lp/bugs/tests/test_bugbranch.py 2010-10-04 19:50:45 +0000
+++ lib/lp/bugs/tests/test_bugbranch.py 2010-10-26 15:55:46 +0000
@@ -1,8 +1,6 @@
1# Copyright 2010 Canonical Ltd. This software is licensed under the1# Copyright 2010 Canonical Ltd. This software is licensed under the
2# GNU Affero General Public License version 3 (see the file LICENSE).2# GNU Affero General Public License version 3 (see the file LICENSE).
33
4from __future__ import with_statement
5
6"""Tests for bug-branch linking from the bugs side."""4"""Tests for bug-branch linking from the bugs side."""
75
8__metaclass__ = type6__metaclass__ = type
97
=== modified file 'lib/lp/buildmaster/model/packagebuild.py'
--- lib/lp/buildmaster/model/packagebuild.py 2010-10-02 11:41:43 +0000
+++ lib/lp/buildmaster/model/packagebuild.py 2010-10-26 15:55:46 +0000
@@ -1,8 +1,6 @@
1# Copyright 2010 Canonical Ltd. This software is licensed under the1# Copyright 2010 Canonical Ltd. This software is licensed under the
2# GNU Affero General Public License version 3 (see the file LICENSE).2# GNU Affero General Public License version 3 (see the file LICENSE).
33
4from __future__ import with_statement
5
6__metaclass__ = type4__metaclass__ = type
7__all__ = [5__all__ = [
8 'PackageBuild',6 'PackageBuild',
97
=== modified file 'lib/lp/buildmaster/tests/test_packagebuild.py'
--- lib/lp/buildmaster/tests/test_packagebuild.py 2010-10-02 11:41:43 +0000
+++ lib/lp/buildmaster/tests/test_packagebuild.py 2010-10-26 15:55:46 +0000
@@ -3,8 +3,6 @@
33
4"""Tests for `IPackageBuild`."""4"""Tests for `IPackageBuild`."""
55
6from __future__ import with_statement
7
8__metaclass__ = type6__metaclass__ = type
97
10from datetime import datetime8from datetime import datetime
119
=== modified file 'lib/lp/code/browser/tests/test_branch.py'
--- lib/lp/code/browser/tests/test_branch.py 2010-10-04 19:50:45 +0000
+++ lib/lp/code/browser/tests/test_branch.py 2010-10-26 15:55:46 +0000
@@ -3,8 +3,6 @@
33
4"""Unit tests for BranchView."""4"""Unit tests for BranchView."""
55
6from __future__ import with_statement
7
8__metaclass__ = type6__metaclass__ = type
97
10from datetime import (8from datetime import (
119
=== modified file 'lib/lp/code/browser/tests/test_branchlisting.py'
--- lib/lp/code/browser/tests/test_branchlisting.py 2010-10-23 04:41:42 +0000
+++ lib/lp/code/browser/tests/test_branchlisting.py 2010-10-26 15:55:46 +0000
@@ -3,8 +3,6 @@
33
4"""Tests for branch listing."""4"""Tests for branch listing."""
55
6from __future__ import with_statement
7
8__metaclass__ = type6__metaclass__ = type
97
10from datetime import timedelta8from datetime import timedelta
119
=== modified file 'lib/lp/code/browser/tests/test_codereviewcomment.py'
--- lib/lp/code/browser/tests/test_codereviewcomment.py 2010-10-06 18:53:53 +0000
+++ lib/lp/code/browser/tests/test_codereviewcomment.py 2010-10-26 15:55:46 +0000
@@ -3,8 +3,6 @@
33
4"""Unit tests for CodeReviewComments."""4"""Unit tests for CodeReviewComments."""
55
6from __future__ import with_statement
7
8__metaclass__ = type6__metaclass__ = type
97
10import unittest8import unittest
119
=== modified file 'lib/lp/code/browser/tests/test_codereviewvote.py'
--- lib/lp/code/browser/tests/test_codereviewvote.py 2010-10-04 19:50:45 +0000
+++ lib/lp/code/browser/tests/test_codereviewvote.py 2010-10-26 15:55:46 +0000
@@ -3,8 +3,6 @@
33
4"""Unit tests for CodeReviewVoteReferences."""4"""Unit tests for CodeReviewVoteReferences."""
55
6from __future__ import with_statement
7
8__metaclass__ = type6__metaclass__ = type
97
108
119
=== modified file 'lib/lp/code/browser/tests/test_sourcepackagerecipe.py'
--- lib/lp/code/browser/tests/test_sourcepackagerecipe.py 2010-10-04 19:50:45 +0000
+++ lib/lp/code/browser/tests/test_sourcepackagerecipe.py 2010-10-26 15:55:46 +0000
@@ -4,8 +4,6 @@
44
5"""Tests for the source package recipe view classes and templates."""5"""Tests for the source package recipe view classes and templates."""
66
7from __future__ import with_statement
8
9__metaclass__ = type7__metaclass__ = type
108
119
1210
=== modified file 'lib/lp/code/mail/codehandler.py'
--- lib/lp/code/mail/codehandler.py 2010-09-23 20:38:59 +0000
+++ lib/lp/code/mail/codehandler.py 2010-10-26 15:55:46 +0000
@@ -1,9 +1,6 @@
1# Copyright 2009 Canonical Ltd. This software is licensed under the1# Copyright 2009 Canonical Ltd. This software is licensed under the
2# GNU Affero General Public License version 3 (see the file LICENSE).2# GNU Affero General Public License version 3 (see the file LICENSE).
33
4from __future__ import with_statement
5
6
7__metaclass__ = type4__metaclass__ = type
85
96
107
=== modified file 'lib/lp/code/mail/tests/test_codehandler.py'
--- lib/lp/code/mail/tests/test_codehandler.py 2010-10-18 01:55:45 +0000
+++ lib/lp/code/mail/tests/test_codehandler.py 2010-10-26 15:55:46 +0000
@@ -3,8 +3,6 @@
33
4"""Testing the CodeHandler."""4"""Testing the CodeHandler."""
55
6from __future__ import with_statement
7
8__metaclass__ = type6__metaclass__ = type
97
10from difflib import unified_diff8from difflib import unified_diff
119
=== modified file 'lib/lp/code/model/branchmergeproposaljob.py'
--- lib/lp/code/model/branchmergeproposaljob.py 2010-10-18 01:57:32 +0000
+++ lib/lp/code/model/branchmergeproposaljob.py 2010-10-26 15:55:46 +0000
@@ -9,9 +9,6 @@
9"""9"""
1010
1111
12from __future__ import with_statement
13
14
15__metaclass__ = type12__metaclass__ = type
1613
1714
1815
=== modified file 'lib/lp/code/model/directbranchcommit.py'
--- lib/lp/code/model/directbranchcommit.py 2010-10-06 11:46:51 +0000
+++ lib/lp/code/model/directbranchcommit.py 2010-10-26 15:55:46 +0000
@@ -3,8 +3,6 @@
33
4"""Commit files straight to bzr branch."""4"""Commit files straight to bzr branch."""
55
6from __future__ import with_statement
7
8__metaclass__ = type6__metaclass__ = type
9__all__ = [7__all__ = [
10 'ConcurrentUpdateError',8 'ConcurrentUpdateError',
119
=== modified file 'lib/lp/code/model/tests/test_branch.py'
--- lib/lp/code/model/tests/test_branch.py 2010-10-04 19:50:45 +0000
+++ lib/lp/code/model/tests/test_branch.py 2010-10-26 15:55:46 +0000
@@ -6,8 +6,6 @@
6"""Tests for Branches."""6"""Tests for Branches."""
77
88
9from __future__ import with_statement
10
11__metaclass__ = type9__metaclass__ = type
1210
13from datetime import (11from datetime import (
1412
=== modified file 'lib/lp/code/model/tests/test_branchjob.py'
--- lib/lp/code/model/tests/test_branchjob.py 2010-10-07 22:46:08 +0000
+++ lib/lp/code/model/tests/test_branchjob.py 2010-10-26 15:55:46 +0000
@@ -3,8 +3,6 @@
33
4"""Tests for BranchJobs."""4"""Tests for BranchJobs."""
55
6from __future__ import with_statement
7
8__metaclass__ = type6__metaclass__ = type
97
10import datetime8import datetime
119
=== modified file 'lib/lp/code/model/tests/test_branchmergeproposal.py'
--- lib/lp/code/model/tests/test_branchmergeproposal.py 2010-10-19 00:44:24 +0000
+++ lib/lp/code/model/tests/test_branchmergeproposal.py 2010-10-26 15:55:46 +0000
@@ -3,8 +3,6 @@
33
4# pylint: disable-msg=F04014# pylint: disable-msg=F0401
55
6from __future__ import with_statement
7
8"""Tests for BranchMergeProposals."""6"""Tests for BranchMergeProposals."""
97
10__metaclass__ = type8__metaclass__ = type
119
=== modified file 'lib/lp/code/model/tests/test_branchmergeproposaljobs.py'
--- lib/lp/code/model/tests/test_branchmergeproposaljobs.py 2010-10-20 01:17:42 +0000
+++ lib/lp/code/model/tests/test_branchmergeproposaljobs.py 2010-10-26 15:55:46 +0000
@@ -3,8 +3,6 @@
33
4"""Tests for branch merge proposal jobs."""4"""Tests for branch merge proposal jobs."""
55
6from __future__ import with_statement
7
8__metaclass__ = type6__metaclass__ = type
97
10from datetime import (8from datetime import (
119
=== modified file 'lib/lp/code/model/tests/test_branchsubscription.py'
--- lib/lp/code/model/tests/test_branchsubscription.py 2010-08-20 20:31:18 +0000
+++ lib/lp/code/model/tests/test_branchsubscription.py 2010-10-26 15:55:46 +0000
@@ -3,8 +3,6 @@
33
4"""Tests for the BranchSubscrptions model object.."""4"""Tests for the BranchSubscrptions model object.."""
55
6from __future__ import with_statement
7
8__metaclass__ = type6__metaclass__ = type
97
10import unittest8import unittest
119
=== modified file 'lib/lp/code/model/tests/test_diff.py'
--- lib/lp/code/model/tests/test_diff.py 2010-10-04 19:50:45 +0000
+++ lib/lp/code/model/tests/test_diff.py 2010-10-26 15:55:46 +0000
@@ -3,8 +3,6 @@
33
4"""Tests for Diff, etc."""4"""Tests for Diff, etc."""
55
6from __future__ import with_statement
7
8__metaclass__ = type6__metaclass__ = type
97
108
119
=== modified file 'lib/lp/code/model/tests/test_recipebuilder.py'
--- lib/lp/code/model/tests/test_recipebuilder.py 2010-10-04 19:50:45 +0000
+++ lib/lp/code/model/tests/test_recipebuilder.py 2010-10-26 15:55:46 +0000
@@ -3,8 +3,6 @@
33
4"""Test RecipeBuildBehavior."""4"""Test RecipeBuildBehavior."""
55
6from __future__ import with_statement
7
8# pylint: disable-msg=F04016# pylint: disable-msg=F0401
97
10__metaclass__ = type8__metaclass__ = type
119
=== modified file 'lib/lp/code/model/tests/test_sourcepackagerecipe.py'
--- lib/lp/code/model/tests/test_sourcepackagerecipe.py 2010-09-22 21:03:48 +0000
+++ lib/lp/code/model/tests/test_sourcepackagerecipe.py 2010-10-26 15:55:46 +0000
@@ -3,8 +3,6 @@
33
4"""Tests for the SourcePackageRecipe content type."""4"""Tests for the SourcePackageRecipe content type."""
55
6from __future__ import with_statement
7
8__metaclass__ = type6__metaclass__ = type
97
10from datetime import (8from datetime import (
119
=== modified file 'lib/lp/code/model/tests/test_sourcepackagerecipebuild.py'
--- lib/lp/code/model/tests/test_sourcepackagerecipebuild.py 2010-10-06 11:46:51 +0000
+++ lib/lp/code/model/tests/test_sourcepackagerecipebuild.py 2010-10-26 15:55:46 +0000
@@ -3,8 +3,6 @@
33
4"""Tests for source package builds."""4"""Tests for source package builds."""
55
6from __future__ import with_statement
7
8__metaclass__ = type6__metaclass__ = type
97
10import datetime8import datetime
119
=== modified file 'lib/lp/code/scripts/tests/test_scan_branches.py'
--- lib/lp/code/scripts/tests/test_scan_branches.py 2010-10-04 19:50:45 +0000
+++ lib/lp/code/scripts/tests/test_scan_branches.py 2010-10-26 15:55:46 +0000
@@ -6,8 +6,6 @@
6"""Test the scan_branches script."""6"""Test the scan_branches script."""
77
88
9from __future__ import with_statement
10
11from storm.locals import Store9from storm.locals import Store
12import transaction10import transaction
1311
1412
=== modified file 'lib/lp/code/scripts/tests/test_sendbranchmail.py'
--- lib/lp/code/scripts/tests/test_sendbranchmail.py 2010-10-04 19:50:45 +0000
+++ lib/lp/code/scripts/tests/test_sendbranchmail.py 2010-10-26 15:55:46 +0000
@@ -5,8 +5,6 @@
55
6"""Test the sendbranchmail script"""6"""Test the sendbranchmail script"""
77
8from __future__ import with_statement
9
10import unittest8import unittest
119
12import transaction10import transaction
1311
=== modified file 'lib/lp/code/xmlrpc/tests/test_branch.py'
--- lib/lp/code/xmlrpc/tests/test_branch.py 2010-10-04 19:50:45 +0000
+++ lib/lp/code/xmlrpc/tests/test_branch.py 2010-10-26 15:55:46 +0000
@@ -3,8 +3,6 @@
33
4"""Unit tests for the public codehosting API."""4"""Unit tests for the public codehosting API."""
55
6from __future__ import with_statement
7
8__metaclass__ = type6__metaclass__ = type
9__all__ = []7__all__ = []
108
119
=== modified file 'lib/lp/codehosting/codeimport/tests/servers.py'
--- lib/lp/codehosting/codeimport/tests/servers.py 2010-09-02 12:09:05 +0000
+++ lib/lp/codehosting/codeimport/tests/servers.py 2010-10-26 15:55:46 +0000
@@ -3,8 +3,6 @@
33
4"""Server classes that know how to create various kinds of foreign archive."""4"""Server classes that know how to create various kinds of foreign archive."""
55
6from __future__ import with_statement
7
8__all__ = [6__all__ = [
9 'CVSServer',7 'CVSServer',
10 'GitServer',8 'GitServer',
119
=== modified file 'lib/lp/codehosting/scanner/tests/test_buglinks.py'
--- lib/lp/codehosting/scanner/tests/test_buglinks.py 2010-10-21 04:19:36 +0000
+++ lib/lp/codehosting/scanner/tests/test_buglinks.py 2010-10-26 15:55:46 +0000
@@ -3,8 +3,6 @@
33
4"""Tests for creating BugBranch items based on Bazaar revisions."""4"""Tests for creating BugBranch items based on Bazaar revisions."""
55
6from __future__ import with_statement
7
8__metaclass__ = type6__metaclass__ = type
97
10import unittest8import unittest
119
=== modified file 'lib/lp/codehosting/scanner/tests/test_bzrsync.py'
--- lib/lp/codehosting/scanner/tests/test_bzrsync.py 2010-10-15 18:33:07 +0000
+++ lib/lp/codehosting/scanner/tests/test_bzrsync.py 2010-10-26 15:55:46 +0000
@@ -5,8 +5,6 @@
55
6# pylint: disable-msg=W01416# pylint: disable-msg=W0141
77
8from __future__ import with_statement
9
10import datetime8import datetime
11import os9import os
12import random10import random
1311
=== modified file 'lib/lp/codehosting/scanner/tests/test_mergedetection.py'
--- lib/lp/codehosting/scanner/tests/test_mergedetection.py 2010-10-21 04:19:36 +0000
+++ lib/lp/codehosting/scanner/tests/test_mergedetection.py 2010-10-26 15:55:46 +0000
@@ -3,8 +3,6 @@
33
4"""Tests for the scanner's merge detection."""4"""Tests for the scanner's merge detection."""
55
6from __future__ import with_statement
7
8__metaclass__ = type6__metaclass__ = type
97
10import logging8import logging
119
=== modified file 'lib/lp/codehosting/tests/test_branchdistro.py'
--- lib/lp/codehosting/tests/test_branchdistro.py 2010-09-29 02:20:44 +0000
+++ lib/lp/codehosting/tests/test_branchdistro.py 2010-10-26 15:55:46 +0000
@@ -4,8 +4,6 @@
4"""Tests for making new source package branches just after a distro release.4"""Tests for making new source package branches just after a distro release.
5"""5"""
66
7from __future__ import with_statement
8
9__metaclass__ = type7__metaclass__ = type
108
11import os9import os
1210
=== modified file 'lib/lp/codehosting/tests/test_jobs.py'
--- lib/lp/codehosting/tests/test_jobs.py 2010-10-04 19:50:45 +0000
+++ lib/lp/codehosting/tests/test_jobs.py 2010-10-26 15:55:46 +0000
@@ -3,8 +3,6 @@
33
4"""Tests for Job-running facilities."""4"""Tests for Job-running facilities."""
55
6from __future__ import with_statement
7
8from unittest import TestLoader6from unittest import TestLoader
97
10from canonical.config import config8from canonical.config import config
119
=== modified file 'lib/lp/codehosting/tests/test_sftp.py'
--- lib/lp/codehosting/tests/test_sftp.py 2010-08-20 20:31:18 +0000
+++ lib/lp/codehosting/tests/test_sftp.py 2010-10-26 15:55:46 +0000
@@ -3,7 +3,6 @@
33
4"""Tests for the transport-backed SFTP server implementation."""4"""Tests for the transport-backed SFTP server implementation."""
55
6from __future__ import with_statement
7from contextlib import closing6from contextlib import closing
8import os7import os
9import unittest8import unittest
109
=== modified file 'lib/lp/registry/browser/tests/test_distroseriesdifference_views.py'
--- lib/lp/registry/browser/tests/test_distroseriesdifference_views.py 2010-09-28 08:30:16 +0000
+++ lib/lp/registry/browser/tests/test_distroseriesdifference_views.py 2010-10-26 15:55:46 +0000
@@ -3,8 +3,6 @@
33
4"""Unit tests for the DistroSeriesDifference views."""4"""Unit tests for the DistroSeriesDifference views."""
55
6from __future__ import with_statement
7
8__metaclass__ = type6__metaclass__ = type
97
10from BeautifulSoup import BeautifulSoup8from BeautifulSoup import BeautifulSoup
119
=== modified file 'lib/lp/registry/browser/tests/test_distroseriesdifference_webservice.py'
--- lib/lp/registry/browser/tests/test_distroseriesdifference_webservice.py 2010-09-29 09:53:15 +0000
+++ lib/lp/registry/browser/tests/test_distroseriesdifference_webservice.py 2010-10-26 15:55:46 +0000
@@ -1,8 +1,6 @@
1# Copyright 2010 Canonical Ltd. This software is licensed under the1# Copyright 2010 Canonical Ltd. This software is licensed under the
2# GNU Affero General Public License version 3 (see the file LICENSE).2# GNU Affero General Public License version 3 (see the file LICENSE).
33
4from __future__ import with_statement
5
6__metaclass__ = type4__metaclass__ = type
75
8import transaction6import transaction
97
=== modified file 'lib/lp/registry/browser/tests/test_mailinglists.py'
--- lib/lp/registry/browser/tests/test_mailinglists.py 2010-08-20 20:31:18 +0000
+++ lib/lp/registry/browser/tests/test_mailinglists.py 2010-10-26 15:55:46 +0000
@@ -2,8 +2,6 @@
2# Copyright 2010 Canonical Ltd. This software is licensed under the2# Copyright 2010 Canonical Ltd. This software is licensed under the
3# GNU Affero General Public License version 3 (see the file LICENSE).3# GNU Affero General Public License version 3 (see the file LICENSE).
44
5from __future__ import with_statement
6
7"""Test harness for mailinglist views unit tests."""5"""Test harness for mailinglist views unit tests."""
86
9__metaclass__ = type7__metaclass__ = type
108
=== modified file 'lib/lp/registry/browser/tests/test_milestone.py'
--- lib/lp/registry/browser/tests/test_milestone.py 2010-09-16 04:43:45 +0000
+++ lib/lp/registry/browser/tests/test_milestone.py 2010-10-26 15:55:46 +0000
@@ -1,8 +1,6 @@
1# Copyright 2010 Canonical Ltd. This software is licensed under the1# Copyright 2010 Canonical Ltd. This software is licensed under the
2# GNU Affero General Public License version 3 (see the file LICENSE).2# GNU Affero General Public License version 3 (see the file LICENSE).
33
4from __future__ import with_statement
5
6"""Test milestone views."""4"""Test milestone views."""
75
8__metaclass__ = type6__metaclass__ = type
97
=== modified file 'lib/lp/registry/browser/tests/test_peoplemerge.py'
--- lib/lp/registry/browser/tests/test_peoplemerge.py 2010-10-04 19:50:45 +0000
+++ lib/lp/registry/browser/tests/test_peoplemerge.py 2010-10-26 15:55:46 +0000
@@ -2,8 +2,6 @@
2# GNU Affero General Public License version 3 (see the file LICENSE).2# GNU Affero General Public License version 3 (see the file LICENSE).
3"""Test the peoplemerge browser module."""3"""Test the peoplemerge browser module."""
44
5from __future__ import with_statement
6
7__metaclass__ = type5__metaclass__ = type
86
9from zope.component import getUtility7from zope.component import getUtility
108
=== modified file 'lib/lp/registry/browser/tests/test_series_views.py'
--- lib/lp/registry/browser/tests/test_series_views.py 2010-10-06 18:53:53 +0000
+++ lib/lp/registry/browser/tests/test_series_views.py 2010-10-26 15:55:46 +0000
@@ -1,8 +1,6 @@
1# Copyright 2010 Canonical Ltd. This software is licensed under the1# Copyright 2010 Canonical Ltd. This software is licensed under the
2# GNU Affero General Public License version 3 (see the file LICENSE).2# GNU Affero General Public License version 3 (see the file LICENSE).
33
4from __future__ import with_statement
5
6__metaclass__ = type4__metaclass__ = type
75
8from BeautifulSoup import BeautifulSoup6from BeautifulSoup import BeautifulSoup
97
=== modified file 'lib/lp/registry/model/person.py'
--- lib/lp/registry/model/person.py 2010-10-26 02:02:12 +0000
+++ lib/lp/registry/model/person.py 2010-10-26 15:55:46 +0000
@@ -1,7 +1,5 @@
1# Copyright 2009-2010 Canonical Ltd. This software is licensed under the1# Copyright 2009-2010 Canonical Ltd. This software is licensed under the
2# GNU Affero General Public License version 3 (see the file LICENSE).2# GNU Affero General Public License version 3 (see the file LICENSE).
3from __future__ import with_statement
4
5# vars() causes W06123# vars() causes W0612
6# pylint: disable-msg=E0611,W0212,W0612,C03224# pylint: disable-msg=E0611,W0212,W0612,C0322
75
86
=== modified file 'lib/lp/registry/tests/test_add_member.py'
--- lib/lp/registry/tests/test_add_member.py 2010-10-04 19:50:45 +0000
+++ lib/lp/registry/tests/test_add_member.py 2010-10-26 15:55:46 +0000
@@ -3,8 +3,6 @@
33
4"""Test team membership changes."""4"""Test team membership changes."""
55
6from __future__ import with_statement
7
8__metaclass__ = type6__metaclass__ = type
97
10from canonical.testing.layers import DatabaseFunctionalLayer8from canonical.testing.layers import DatabaseFunctionalLayer
119
=== modified file 'lib/lp/registry/tests/test_distroseries.py'
--- lib/lp/registry/tests/test_distroseries.py 2010-10-04 20:46:55 +0000
+++ lib/lp/registry/tests/test_distroseries.py 2010-10-26 15:55:46 +0000
@@ -3,8 +3,6 @@
33
4"""Tests for distroseries."""4"""Tests for distroseries."""
55
6from __future__ import with_statement
7
8__metaclass__ = type6__metaclass__ = type
97
10import transaction8import transaction
119
=== modified file 'lib/lp/registry/tests/test_distroseriesdifference.py'
--- lib/lp/registry/tests/test_distroseriesdifference.py 2010-10-24 12:37:51 +0000
+++ lib/lp/registry/tests/test_distroseriesdifference.py 2010-10-26 15:55:46 +0000
@@ -3,8 +3,6 @@
33
4"""Model tests for the DistroSeriesDifference class."""4"""Model tests for the DistroSeriesDifference class."""
55
6from __future__ import with_statement
7
8__metaclass__ = type6__metaclass__ = type
97
10import unittest8import unittest
119
=== modified file 'lib/lp/registry/tests/test_mailinglist.py'
--- lib/lp/registry/tests/test_mailinglist.py 2010-10-04 19:50:45 +0000
+++ lib/lp/registry/tests/test_mailinglist.py 2010-10-26 15:55:46 +0000
@@ -1,8 +1,6 @@
1# Copyright 2009 Canonical Ltd. This software is licensed under the1# Copyright 2009 Canonical Ltd. This software is licensed under the
2# GNU Affero General Public License version 3 (see the file LICENSE).2# GNU Affero General Public License version 3 (see the file LICENSE).
33
4from __future__ import with_statement
5
6__metaclass__ = type4__metaclass__ = type
7__all__ = []5__all__ = []
86
97
=== modified file 'lib/lp/registry/tests/test_mailinglistapi.py'
--- lib/lp/registry/tests/test_mailinglistapi.py 2010-10-04 19:50:45 +0000
+++ lib/lp/registry/tests/test_mailinglistapi.py 2010-10-26 15:55:46 +0000
@@ -3,8 +3,6 @@
33
4"""Unit tests for the private MailingList API."""4"""Unit tests for the private MailingList API."""
55
6from __future__ import with_statement
7
8__metaclass__ = type6__metaclass__ = type
9__all__ = []7__all__ = []
108
119
=== modified file 'lib/lp/registry/tests/test_person.py'
--- lib/lp/registry/tests/test_person.py 2010-09-29 14:16:22 +0000
+++ lib/lp/registry/tests/test_person.py 2010-10-26 15:55:46 +0000
@@ -1,8 +1,6 @@
1# Copyright 2009-2010 Canonical Ltd. This software is licensed under the1# Copyright 2009-2010 Canonical Ltd. This software is licensed under the
2# GNU Affero General Public License version 3 (see the file LICENSE).2# GNU Affero General Public License version 3 (see the file LICENSE).
33
4from __future__ import with_statement
5
6__metaclass__ = type4__metaclass__ = type
75
8from datetime import datetime6from datetime import datetime
97
=== modified file 'lib/lp/registry/tests/test_sourcepackage.py'
--- lib/lp/registry/tests/test_sourcepackage.py 2010-08-24 15:29:01 +0000
+++ lib/lp/registry/tests/test_sourcepackage.py 2010-10-26 15:55:46 +0000
@@ -3,8 +3,6 @@
33
4"""Unit tests for ISourcePackage implementations."""4"""Unit tests for ISourcePackage implementations."""
55
6from __future__ import with_statement
7
8__metaclass__ = type6__metaclass__ = type
97
10import unittest8import unittest
119
=== modified file 'lib/lp/services/features/tests/test_db_settings.py'
--- lib/lp/services/features/tests/test_db_settings.py 2010-08-20 20:31:18 +0000
+++ lib/lp/services/features/tests/test_db_settings.py 2010-10-26 15:55:46 +0000
@@ -4,7 +4,6 @@
4"""Tests for feature settings coming from the database"""4"""Tests for feature settings coming from the database"""
55
66
7from __future__ import with_statement
8__metaclass__ = type7__metaclass__ = type
98
10from canonical.testing import layers9from canonical.testing import layers
1110
=== modified file 'lib/lp/services/features/tests/test_flags.py'
--- lib/lp/services/features/tests/test_flags.py 2010-09-28 09:29:46 +0000
+++ lib/lp/services/features/tests/test_flags.py 2010-10-26 15:55:46 +0000
@@ -4,7 +4,6 @@
4"""Tests for feature flags."""4"""Tests for feature flags."""
55
66
7from __future__ import with_statement
8__metaclass__ = type7__metaclass__ = type
98
10import os9import os
1110
=== modified file 'lib/lp/services/job/runner.py'
--- lib/lp/services/job/runner.py 2010-10-07 16:51:23 +0000
+++ lib/lp/services/job/runner.py 2010-10-26 15:55:46 +0000
@@ -4,7 +4,6 @@
4"""Facilities for running Jobs."""4"""Facilities for running Jobs."""
55
66
7from __future__ import with_statement
8__metaclass__ = type7__metaclass__ = type
98
109
1110
=== modified file 'lib/lp/services/job/tests/test_runner.py'
--- lib/lp/services/job/tests/test_runner.py 2010-10-06 18:53:53 +0000
+++ lib/lp/services/job/tests/test_runner.py 2010-10-26 15:55:46 +0000
@@ -4,8 +4,6 @@
4"""Tests for job-running facilities."""4"""Tests for job-running facilities."""
55
66
7from __future__ import with_statement
8
9import sys7import sys
10from time import sleep8from time import sleep
11from unittest import TestLoader9from unittest import TestLoader
1210
=== modified file 'lib/lp/services/log/tests/test_uniquefileallocator.py'
--- lib/lp/services/log/tests/test_uniquefileallocator.py 2010-10-13 16:35:06 +0000
+++ lib/lp/services/log/tests/test_uniquefileallocator.py 2010-10-26 15:55:46 +0000
@@ -3,7 +3,6 @@
33
4"""Tests for the unique log naming facility."""4"""Tests for the unique log naming facility."""
55
6from __future__ import with_statement
7__metaclass__ = type6__metaclass__ = type
87
9import datetime8import datetime
109
=== modified file 'lib/lp/services/mailman/tests/test_lpmoderate.py'
--- lib/lp/services/mailman/tests/test_lpmoderate.py 2010-10-06 11:46:51 +0000
+++ lib/lp/services/mailman/tests/test_lpmoderate.py 2010-10-26 15:55:46 +0000
@@ -2,8 +2,6 @@
2# GNU Affero General Public License version 3 (see the file LICENSE).2# GNU Affero General Public License version 3 (see the file LICENSE).
3"""Test the lpmoderate monekypatches"""3"""Test the lpmoderate monekypatches"""
44
5from __future__ import with_statement
6
7__metaclass__ = type5__metaclass__ = type
8__all__ = []6__all__ = []
97
108
=== modified file 'lib/lp/services/spriteutils.py'
--- lib/lp/services/spriteutils.py 2010-08-20 20:31:18 +0000
+++ lib/lp/services/spriteutils.py 2010-10-26 15:55:46 +0000
@@ -6,8 +6,6 @@
66
7"""Library to create sprites."""7"""Library to create sprites."""
88
9from __future__ import with_statement
10
11__metaclass__ = type9__metaclass__ = type
1210
13__all__ = [11__all__ = [
1412
=== modified file 'lib/lp/services/utils.py'
--- lib/lp/services/utils.py 2010-08-20 20:31:18 +0000
+++ lib/lp/services/utils.py 2010-10-26 15:55:46 +0000
@@ -1,8 +1,6 @@
1# Copyright 2009 Canonical Ltd. This software is licensed under the1# Copyright 2009 Canonical Ltd. This software is licensed under the
2# GNU Affero General Public License version 3 (see the file LICENSE).2# GNU Affero General Public License version 3 (see the file LICENSE).
33
4from __future__ import with_statement
5
6"""Generic Python utilities.4"""Generic Python utilities.
75
8Functions, lists and so forth. Nothing here that does system calls or network6Functions, lists and so forth. Nothing here that does system calls or network
97
=== modified file 'lib/lp/soyuz/browser/tests/test_archive_webservice.py'
--- lib/lp/soyuz/browser/tests/test_archive_webservice.py 2010-10-04 19:50:45 +0000
+++ lib/lp/soyuz/browser/tests/test_archive_webservice.py 2010-10-26 15:55:46 +0000
@@ -1,8 +1,6 @@
1# Copyright 2010 Canonical Ltd. This software is licensed under the1# Copyright 2010 Canonical Ltd. This software is licensed under the
2# GNU Affero General Public License version 3 (see the file LICENSE).2# GNU Affero General Public License version 3 (see the file LICENSE).
33
4from __future__ import with_statement
5
6__metaclass__ = type4__metaclass__ = type
75
8import unittest6import unittest
97
=== modified file 'lib/lp/soyuz/scripts/tests/test_queue.py'
--- lib/lp/soyuz/scripts/tests/test_queue.py 2010-10-04 20:46:55 +0000
+++ lib/lp/soyuz/scripts/tests/test_queue.py 2010-10-26 15:55:46 +0000
@@ -3,8 +3,6 @@
33
4"""queue tool base class tests."""4"""queue tool base class tests."""
55
6from __future__ import with_statement
7
8__metaclass__ = type6__metaclass__ = type
9__all__ = [7__all__ = [
10 'upload_bar_source',8 'upload_bar_source',
119
=== modified file 'lib/lp/soyuz/tests/test_archive.py'
--- lib/lp/soyuz/tests/test_archive.py 2010-10-04 19:50:45 +0000
+++ lib/lp/soyuz/tests/test_archive.py 2010-10-26 15:55:46 +0000
@@ -1,8 +1,6 @@
1# Copyright 2009-2010 Canonical Ltd. This software is licensed under the1# Copyright 2009-2010 Canonical Ltd. This software is licensed under the
2# GNU Affero General Public License version 3 (see the file LICENSE).2# GNU Affero General Public License version 3 (see the file LICENSE).
33
4from __future__ import with_statement
5
6"""Test Archive features."""4"""Test Archive features."""
75
8from datetime import date6from datetime import date
97
=== modified file 'lib/lp/soyuz/tests/test_archive_subscriptions.py'
--- lib/lp/soyuz/tests/test_archive_subscriptions.py 2010-10-04 19:50:45 +0000
+++ lib/lp/soyuz/tests/test_archive_subscriptions.py 2010-10-26 15:55:46 +0000
@@ -3,8 +3,6 @@
33
4"""Test Archive features."""4"""Test Archive features."""
55
6from __future__ import with_statement
7
8from zope.security.interfaces import Unauthorized6from zope.security.interfaces import Unauthorized
97
10from canonical.testing.layers import DatabaseFunctionalLayer8from canonical.testing.layers import DatabaseFunctionalLayer
119
=== modified file 'lib/lp/soyuz/tests/test_binarypackagebuildbehavior.py'
--- lib/lp/soyuz/tests/test_binarypackagebuildbehavior.py 2010-10-04 19:50:45 +0000
+++ lib/lp/soyuz/tests/test_binarypackagebuildbehavior.py 2010-10-26 15:55:46 +0000
@@ -1,8 +1,6 @@
1# Copyright 2010 Canonical Ltd. This software is licensed under the1# Copyright 2010 Canonical Ltd. This software is licensed under the
2# GNU Affero General Public License version 3 (see the file LICENSE).2# GNU Affero General Public License version 3 (see the file LICENSE).
33
4from __future__ import with_statement
5
6"""Tests for BinaryPackageBuildBehavior."""4"""Tests for BinaryPackageBuildBehavior."""
75
8__metaclass__ = type6__metaclass__ = type
97
=== modified file 'lib/lp/soyuz/tests/test_copyarchivejob.py'
--- lib/lp/soyuz/tests/test_copyarchivejob.py 2010-10-04 19:50:45 +0000
+++ lib/lp/soyuz/tests/test_copyarchivejob.py 2010-10-26 15:55:46 +0000
@@ -1,8 +1,6 @@
1# Copyright 2009 Canonical Ltd. This software is licensed under the1# Copyright 2009 Canonical Ltd. This software is licensed under the
2# GNU Affero General Public License version 3 (see the file LICENSE).2# GNU Affero General Public License version 3 (see the file LICENSE).
33
4from __future__ import with_statement
5
6__metaclass__ = type4__metaclass__ = type
75
8from zope.component import getUtility6from zope.component import getUtility
97
=== modified file 'lib/lp/testing/__init__.py'
--- lib/lp/testing/__init__.py 2010-10-25 13:16:10 +0000
+++ lib/lp/testing/__init__.py 2010-10-26 15:55:46 +0000
@@ -3,9 +3,6 @@
33
4# pylint: disable-msg=W0401,C0301,F04014# pylint: disable-msg=W0401,C0301,F0401
55
6from __future__ import with_statement
7
8
9__metaclass__ = type6__metaclass__ = type
10__all__ = [7__all__ = [
11 'ANONYMOUS',8 'ANONYMOUS',
129
=== modified file 'lib/lp/testing/_login.py'
--- lib/lp/testing/_login.py 2010-08-20 20:31:18 +0000
+++ lib/lp/testing/_login.py 2010-10-26 15:55:46 +0000
@@ -1,8 +1,6 @@
1# Copyright 2009-2010 Canonical Ltd. This software is licensed under the1# Copyright 2009-2010 Canonical Ltd. This software is licensed under the
2# GNU Affero General Public License version 3 (see the file LICENSE).2# GNU Affero General Public License version 3 (see the file LICENSE).
33
4from __future__ import with_statement
5
6# We like global statements!4# We like global statements!
7# pylint: disable-msg=W0602,W06035# pylint: disable-msg=W0602,W0603
8__metaclass__ = type6__metaclass__ = type
97
=== modified file 'lib/lp/testing/factory.py'
--- lib/lp/testing/factory.py 2010-10-24 13:02:07 +0000
+++ lib/lp/testing/factory.py 2010-10-26 15:55:46 +0000
@@ -3,8 +3,6 @@
33
4# pylint: disable-msg=F04014# pylint: disable-msg=F0401
55
6from __future__ import with_statement
7
8"""Testing infrastructure for the Launchpad application.6"""Testing infrastructure for the Launchpad application.
97
10This module should not contain tests (but it should be tested).8This module should not contain tests (but it should be tested).
119
=== modified file 'lib/lp/testing/tests/test_login.py'
--- lib/lp/testing/tests/test_login.py 2010-08-20 20:31:18 +0000
+++ lib/lp/testing/tests/test_login.py 2010-10-26 15:55:46 +0000
@@ -1,8 +1,6 @@
1# Copyright 2010 Canonical Ltd. This software is licensed under the1# Copyright 2010 Canonical Ltd. This software is licensed under the
2# GNU Affero General Public License version 3 (see the file LICENSE).2# GNU Affero General Public License version 3 (see the file LICENSE).
33
4from __future__ import with_statement
5
6"""Tests for the login helpers."""4"""Tests for the login helpers."""
75
8__metaclass__ = type6__metaclass__ = type
97
=== modified file 'lib/lp/testing/tests/test_testing.py'
--- lib/lp/testing/tests/test_testing.py 2010-09-29 20:36:26 +0000
+++ lib/lp/testing/tests/test_testing.py 2010-10-26 15:55:46 +0000
@@ -1,8 +1,6 @@
1# Copyright 2010 Canonical Ltd. This software is licensed under the1# Copyright 2010 Canonical Ltd. This software is licensed under the
2# GNU Affero General Public License version 3 (see the file LICENSE).2# GNU Affero General Public License version 3 (see the file LICENSE).
33
4from __future__ import with_statement
5
6"""Tests for the testing module."""4"""Tests for the testing module."""
75
8__metaclass__ = type6__metaclass__ = type
97
=== modified file 'lib/lp/translations/pottery/detect_intltool.py'
--- lib/lp/translations/pottery/detect_intltool.py 2010-08-20 20:31:18 +0000
+++ lib/lp/translations/pottery/detect_intltool.py 2010-10-26 15:55:46 +0000
@@ -4,8 +4,6 @@
4"""Functions to detect if intltool can be used to generate a POT file for the4"""Functions to detect if intltool can be used to generate a POT file for the
5package in the current directory."""5package in the current directory."""
66
7from __future__ import with_statement
8
9from contextlib import contextmanager7from contextlib import contextmanager
108
119
1210
=== modified file 'lib/lp/translations/tests/test_autoapproval.py'
--- lib/lp/translations/tests/test_autoapproval.py 2010-10-04 19:50:45 +0000
+++ lib/lp/translations/tests/test_autoapproval.py 2010-10-26 15:55:46 +0000
@@ -8,8 +8,6 @@
8through the possibilities should go here.8through the possibilities should go here.
9"""9"""
1010
11from __future__ import with_statement
12
13from contextlib import contextmanager11from contextlib import contextmanager
14from datetime import (12from datetime import (
15 datetime,13 datetime,
1614
=== modified file 'lib/lp/translations/tests/test_pottery_detect_intltool.py'
--- lib/lp/translations/tests/test_pottery_detect_intltool.py 2010-08-20 20:31:18 +0000
+++ lib/lp/translations/tests/test_pottery_detect_intltool.py 2010-10-26 15:55:46 +0000
@@ -1,8 +1,6 @@
1# Copyright 2009-2010 Canonical Ltd. This software is licensed under the1# Copyright 2009-2010 Canonical Ltd. This software is licensed under the
2# GNU Affero General Public License version 3 (see the file LICENSE).2# GNU Affero General Public License version 3 (see the file LICENSE).
33
4from __future__ import with_statement
5
6import os4import os
7from StringIO import StringIO5from StringIO import StringIO
8import tarfile6import tarfile
97
=== modified file 'lib/lp/translations/tests/test_rosetta_branches_script.py'
--- lib/lp/translations/tests/test_rosetta_branches_script.py 2010-10-04 19:50:45 +0000
+++ lib/lp/translations/tests/test_rosetta_branches_script.py 2010-10-26 15:55:46 +0000
@@ -7,8 +7,6 @@
7provisions to handle Bazaar branches.7provisions to handle Bazaar branches.
8"""8"""
99
10from __future__ import with_statement
11
12__metaclass__ = type10__metaclass__ = type
1311
14from unittest import TestLoader12from unittest import TestLoader
1513
=== modified file 'lib/lp/translations/tests/test_translationimportqueue.py'
--- lib/lp/translations/tests/test_translationimportqueue.py 2010-10-04 19:50:45 +0000
+++ lib/lp/translations/tests/test_translationimportqueue.py 2010-10-26 15:55:46 +0000
@@ -1,8 +1,6 @@
1# Copyright 2009-2010 Canonical Ltd. This software is licensed under the1# Copyright 2009-2010 Canonical Ltd. This software is licensed under the
2# GNU Affero General Public License version 3 (see the file LICENSE).2# GNU Affero General Public License version 3 (see the file LICENSE).
33
4from __future__ import with_statement
5
6__metaclass__ = type4__metaclass__ = type
75
8import unittest6import unittest