Merge ~cjwatson/launchpad:pythonpath-noqa into launchpad:master
- Git
- lp:~cjwatson/launchpad
- pythonpath-noqa
- Merge into master
Proposed by
Colin Watson
Status: | Merged |
---|---|
Approved by: | Colin Watson |
Approved revision: | b568543b8e56fa03a3a7c3c30754ee4844a569c2 |
Merge reported by: | Otto Co-Pilot |
Merged at revision: | not available |
Proposed branch: | ~cjwatson/launchpad:pythonpath-noqa |
Merge into: | launchpad:master |
Diff against target: |
1689 lines (+130/-130) 130 files modified
cronscripts/allocate-revision-karma.py (+1/-1) cronscripts/buildd-retry-depwait.py (+1/-1) cronscripts/check-teamparticipation.py (+1/-1) cronscripts/checkwatches.py (+1/-1) cronscripts/daily_product_jobs.py (+1/-1) cronscripts/distributionmirror-prober.py (+1/-1) cronscripts/expire-archive-files.py (+1/-1) cronscripts/expire-bugtasks.py (+1/-1) cronscripts/expire-questions.py (+1/-1) cronscripts/flag-expired-memberships.py (+1/-1) cronscripts/foaf-update-karma-cache.py (+1/-1) cronscripts/garbo-daily.py (+1/-1) cronscripts/garbo-frequently.py (+1/-1) cronscripts/garbo-hourly.py (+1/-1) cronscripts/generate-contents-files.py (+1/-1) cronscripts/generate-ppa-htaccess.py (+1/-1) cronscripts/language-pack-exporter.py (+1/-1) cronscripts/librarian-feed-swift.py (+1/-1) cronscripts/librarian-gc.py (+1/-1) cronscripts/parse-librarian-apache-access-logs.py (+1/-1) cronscripts/parse-ppa-apache-access-logs.py (+1/-1) cronscripts/ppa-generate-keys.py (+1/-1) cronscripts/process-job-source-groups.py (+1/-1) cronscripts/process-job-source.py (+1/-1) cronscripts/process-mail.py (+1/-1) cronscripts/product-release-finder.py (+1/-1) cronscripts/publish-ftpmaster.py (+1/-1) cronscripts/repack_git_repositories.py (+1/-1) cronscripts/request_daily_builds.py (+1/-1) cronscripts/rosetta-approve-imports.py (+1/-1) cronscripts/rosetta-export-queue.py (+1/-1) cronscripts/rosetta-pofile-stats.py (+1/-1) cronscripts/rosetta-poimport.py (+1/-1) cronscripts/send-bug-notifications.py (+1/-1) cronscripts/send-person-notifications.py (+1/-1) cronscripts/supermirror-pull.py (+1/-1) cronscripts/translations-export-to-branch.py (+1/-1) cronscripts/update-bugtask-targetnamecaches.py (+1/-1) cronscripts/update-bugzilla-remote-components.py (+1/-1) cronscripts/update-cve.py (+1/-1) cronscripts/update-database-stats.py (+1/-1) cronscripts/update-pkgcache.py (+1/-1) cronscripts/update-remote-product.py (+1/-1) cronscripts/update-sourceforge-remote-products.py (+1/-1) cronscripts/update-standing.py (+1/-1) cronscripts/update-stats.py (+1/-1) database/replication/preamble.py (+1/-1) database/replication/sync.py (+1/-1) database/schema/emptytables.py (+1/-1) database/schema/fti.py (+1/-1) database/schema/full-update.py (+1/-1) database/schema/online_fti_updater.py (+1/-1) database/schema/preflight.py (+1/-1) database/schema/reset_sequences.py (+1/-1) database/schema/security.py (+1/-1) database/schema/sort_sql.py (+1/-1) database/schema/unautovacuumable.py (+1/-1) database/schema/upgrade.py (+1/-1) lib/lp/services/scripts/tests/cronscript-crash.py (+1/-1) scripts/add-missing-builds.py (+1/-1) scripts/branch-rewrite.py (+1/-1) scripts/bug-export.py (+1/-1) scripts/bug-import.py (+1/-1) scripts/bugsummary-rebuild.py (+1/-1) scripts/cache-country-mirrors.py (+1/-1) scripts/close-account.py (+1/-1) scripts/convert-person-to-team.py (+1/-1) scripts/copy-distroseries-translations.py (+1/-1) scripts/copy-signingkeys.py (+1/-1) scripts/create-bot-account.py (+1/-1) scripts/fix-translations-opening.py (+1/-1) scripts/ftpmaster-tools/buildd-mass-retry.py (+1/-1) scripts/ftpmaster-tools/obsolete-distroseries.py (+1/-1) scripts/generate-access-token.py (+1/-1) scripts/get-stacked-on-branches.py (+1/-1) scripts/gina.py (+1/-1) scripts/import-debian-bugs.py (+1/-1) scripts/librarian-report.py (+1/-1) scripts/list-team-members (+1/-1) scripts/memcached-stats.py (+1/-1) scripts/migrate-librarian-content-md5.py (+1/-1) scripts/mirror-branch.py (+1/-1) scripts/mlist-import.py (+1/-1) scripts/modified-branches.py (+1/-1) scripts/populate-archive.py (+1/-1) scripts/populate-distroseriesdiff.py (+1/-1) scripts/ppa-report.py (+1/-1) scripts/process-accepted.py (+1/-1) scripts/process-death-row.py (+1/-1) scripts/process-one-mail.py (+1/-1) scripts/process-upload.py (+1/-1) scripts/publish-distro.py (+1/-1) scripts/rosetta/fix_translation_credits.py (+1/-1) scripts/rosetta/gettext_check_messages.py (+1/-1) scripts/rosetta/merge-existing-packagings.py (+1/-1) scripts/rosetta/message-sharing-merge.py (+1/-1) scripts/rosetta/migrate_current_flag.py (+1/-1) scripts/rosetta/pottery-generate-intltool.py (+1/-1) scripts/rosetta/remove-translations-by.py (+1/-1) scripts/rosetta/reupload-translations.py (+1/-1) scripts/rosetta/upload-translations.py (+1/-1) scripts/rosetta/validate-translations-file.py (+1/-1) scripts/script-monitor-nagios.py (+1/-1) scripts/script-monitor.py (+1/-1) scripts/start-loggerhead.py (+1/-1) scripts/stop-loggerhead.py (+1/-1) scripts/suspend-bot-account.py (+1/-1) scripts/sync-branches.py (+1/-1) scripts/sync-signingkeys.py (+1/-1) scripts/update-stacked-on.py (+1/-1) scripts/upgrade_all_branches.py (+1/-1) scripts/upload2librarian.py (+1/-1) scripts/wsgi-archive-auth.py (+1/-1) test_on_merge.py (+1/-1) utilities/audit-security-settings.py (+1/-1) utilities/create-lp-wadl-and-apidoc.py (+1/-1) utilities/generate-external-bug-status-docs (+1/-1) utilities/get-branch-info (+1/-1) utilities/js-deps (+1/-1) utilities/list-pages (+1/-1) utilities/lsconf.py (+1/-1) utilities/make-dummy-hosted-branches (+1/-1) utilities/make-lp-user (+1/-1) utilities/paste (+1/-1) utilities/pgkillactive.py (+1/-1) utilities/pgkillidle.py (+1/-1) utilities/pgmassacre.py (+1/-1) utilities/report-database-stats.py (+1/-1) utilities/smoke-test-librarian.py (+1/-1) utilities/soyuz-sampledata-setup.py (+1/-1) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Colin Watson (community) | Approve | ||
Review via email: mp+406062@code.launchpad.net |
Commit message
Add noqa comment to all _pythonpath imports
Description of the change
`flake8` objects to these since they're unused, but we're importing `_pythonpath` for its side-effects. We don't officially use `flake8` yet, but it's the obvious replacement for `pocketlint` once we clean some things up.
Patch generated by:
git grep -l '^import _pythonpath$' | \
xargs sed -i 's/^import _pythonpath$/import _pythonpath # noqa: F401/'
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 | diff --git a/cronscripts/allocate-revision-karma.py b/cronscripts/allocate-revision-karma.py |
2 | index 2fbeb6b..5c4ad8a 100755 |
3 | --- a/cronscripts/allocate-revision-karma.py |
4 | +++ b/cronscripts/allocate-revision-karma.py |
5 | @@ -3,7 +3,7 @@ |
6 | # Copyright 2009 Canonical Ltd. This software is licensed under the |
7 | # GNU Affero General Public License version 3 (see the file LICENSE). |
8 | |
9 | -import _pythonpath |
10 | +import _pythonpath # noqa: F401 |
11 | |
12 | from lp.code.scripts.revisionkarma import RevisionKarmaAllocator |
13 | from lp.services.config import config |
14 | diff --git a/cronscripts/buildd-retry-depwait.py b/cronscripts/buildd-retry-depwait.py |
15 | index 381729a..0010789 100755 |
16 | --- a/cronscripts/buildd-retry-depwait.py |
17 | +++ b/cronscripts/buildd-retry-depwait.py |
18 | @@ -3,7 +3,7 @@ |
19 | # Copyright 2012 Canonical Ltd. This software is licensed under the |
20 | # GNU Affero General Public License version 3 (see the file LICENSE). |
21 | |
22 | -import _pythonpath |
23 | +import _pythonpath # noqa: F401 |
24 | |
25 | from lp.services.scripts.base import LaunchpadCronScript |
26 | from lp.soyuz.scripts.retrydepwait import RetryDepwaitTunableLoop |
27 | diff --git a/cronscripts/check-teamparticipation.py b/cronscripts/check-teamparticipation.py |
28 | index 995acd7..e7341cf 100755 |
29 | --- a/cronscripts/check-teamparticipation.py |
30 | +++ b/cronscripts/check-teamparticipation.py |
31 | @@ -16,7 +16,7 @@ Ideally there should be database constraints to prevent this sort of |
32 | situation, but that's not a simple thing and this should do for now. |
33 | """ |
34 | |
35 | -import _pythonpath |
36 | +import _pythonpath # noqa: F401 |
37 | |
38 | from lp.registry.scripts.teamparticipation import ( |
39 | check_teamparticipation_circular, |
40 | diff --git a/cronscripts/checkwatches.py b/cronscripts/checkwatches.py |
41 | index b851765..55cffa8 100755 |
42 | --- a/cronscripts/checkwatches.py |
43 | +++ b/cronscripts/checkwatches.py |
44 | @@ -7,7 +7,7 @@ |
45 | Cron job to run daily to check all of the BugWatches |
46 | """ |
47 | |
48 | -import _pythonpath |
49 | +import _pythonpath # noqa: F401 |
50 | |
51 | from lp.bugs.scripts.checkwatches import CheckWatchesCronScript |
52 | from lp.services.config import config |
53 | diff --git a/cronscripts/daily_product_jobs.py b/cronscripts/daily_product_jobs.py |
54 | index d1accbf..aea1daf 100755 |
55 | --- a/cronscripts/daily_product_jobs.py |
56 | +++ b/cronscripts/daily_product_jobs.py |
57 | @@ -6,7 +6,7 @@ |
58 | |
59 | __metaclass__ = type |
60 | |
61 | -import _pythonpath |
62 | +import _pythonpath # noqa: F401 |
63 | |
64 | import transaction |
65 | |
66 | diff --git a/cronscripts/distributionmirror-prober.py b/cronscripts/distributionmirror-prober.py |
67 | index 52bc01f..7ef39b3 100755 |
68 | --- a/cronscripts/distributionmirror-prober.py |
69 | +++ b/cronscripts/distributionmirror-prober.py |
70 | @@ -5,7 +5,7 @@ |
71 | |
72 | """Script to probe distribution mirrors and check how up-to-date they are.""" |
73 | |
74 | -import _pythonpath |
75 | +import _pythonpath # noqa: F401 |
76 | |
77 | from lp.registry.interfaces.distributionmirror import MirrorContent |
78 | from lp.registry.scripts.distributionmirror_prober import DistroMirrorProber |
79 | diff --git a/cronscripts/expire-archive-files.py b/cronscripts/expire-archive-files.py |
80 | index 5ef5628..a2952a2 100755 |
81 | --- a/cronscripts/expire-archive-files.py |
82 | +++ b/cronscripts/expire-archive-files.py |
83 | @@ -7,7 +7,7 @@ |
84 | # are older than 30 days. It's done with pure SQL rather than Python |
85 | # for speed reasons. |
86 | |
87 | -import _pythonpath |
88 | +import _pythonpath # noqa: F401 |
89 | |
90 | from lp.services.config import config |
91 | from lp.soyuz.scripts.expire_archive_files import ArchiveExpirer |
92 | diff --git a/cronscripts/expire-bugtasks.py b/cronscripts/expire-bugtasks.py |
93 | index ec85476..628da0a 100755 |
94 | --- a/cronscripts/expire-bugtasks.py |
95 | +++ b/cronscripts/expire-bugtasks.py |
96 | @@ -11,7 +11,7 @@ period is configured through config.malone.days_before_expiration. |
97 | |
98 | __metaclass__ = type |
99 | |
100 | -import _pythonpath |
101 | +import _pythonpath # noqa: F401 |
102 | |
103 | from zope.component import getUtility |
104 | |
105 | diff --git a/cronscripts/expire-questions.py b/cronscripts/expire-questions.py |
106 | index 07a5c3f..9e1f2eb 100755 |
107 | --- a/cronscripts/expire-questions.py |
108 | +++ b/cronscripts/expire-questions.py |
109 | @@ -15,7 +15,7 @@ __metaclass__ = type |
110 | __all__ = ['ExpireQuestions'] |
111 | |
112 | |
113 | -import _pythonpath |
114 | +import _pythonpath # noqa: F401 |
115 | |
116 | from lp.answers.scripts.questionexpiration import QuestionJanitor |
117 | from lp.services.scripts.base import LaunchpadCronScript |
118 | diff --git a/cronscripts/flag-expired-memberships.py b/cronscripts/flag-expired-memberships.py |
119 | index f2c48ec..5268105 100755 |
120 | --- a/cronscripts/flag-expired-memberships.py |
121 | +++ b/cronscripts/flag-expired-memberships.py |
122 | @@ -5,7 +5,7 @@ |
123 | |
124 | """Flag expired team memberships and warn about impending expiration.""" |
125 | |
126 | -import _pythonpath |
127 | +import _pythonpath # noqa: F401 |
128 | |
129 | from datetime import ( |
130 | datetime, |
131 | diff --git a/cronscripts/foaf-update-karma-cache.py b/cronscripts/foaf-update-karma-cache.py |
132 | index 788ea74..c31bc1c 100755 |
133 | --- a/cronscripts/foaf-update-karma-cache.py |
134 | +++ b/cronscripts/foaf-update-karma-cache.py |
135 | @@ -3,7 +3,7 @@ |
136 | # Copyright 2009-2011 Canonical Ltd. This software is licensed under the |
137 | # GNU Affero General Public License version 3 (see the file LICENSE). |
138 | |
139 | -import _pythonpath |
140 | +import _pythonpath # noqa: F401 |
141 | |
142 | from zope.component import getUtility |
143 | |
144 | diff --git a/cronscripts/garbo-daily.py b/cronscripts/garbo-daily.py |
145 | index 0de9bc0..f4d9ee7 100755 |
146 | --- a/cronscripts/garbo-daily.py |
147 | +++ b/cronscripts/garbo-daily.py |
148 | @@ -12,7 +12,7 @@ corruption. |
149 | __metaclass__ = type |
150 | __all__ = [] |
151 | |
152 | -import _pythonpath |
153 | +import _pythonpath # noqa: F401 |
154 | |
155 | from lp.scripts.garbo import DailyDatabaseGarbageCollector |
156 | |
157 | diff --git a/cronscripts/garbo-frequently.py b/cronscripts/garbo-frequently.py |
158 | index 43c5369..a6c7309 100755 |
159 | --- a/cronscripts/garbo-frequently.py |
160 | +++ b/cronscripts/garbo-frequently.py |
161 | @@ -12,7 +12,7 @@ corruption. |
162 | __metaclass__ = type |
163 | __all__ = [] |
164 | |
165 | -import _pythonpath |
166 | +import _pythonpath # noqa: F401 |
167 | |
168 | from lp.scripts.garbo import FrequentDatabaseGarbageCollector |
169 | |
170 | diff --git a/cronscripts/garbo-hourly.py b/cronscripts/garbo-hourly.py |
171 | index 89336d2..3c2b35f 100755 |
172 | --- a/cronscripts/garbo-hourly.py |
173 | +++ b/cronscripts/garbo-hourly.py |
174 | @@ -12,7 +12,7 @@ corruption. |
175 | __metaclass__ = type |
176 | __all__ = [] |
177 | |
178 | -import _pythonpath |
179 | +import _pythonpath # noqa: F401 |
180 | |
181 | from lp.scripts.garbo import HourlyDatabaseGarbageCollector |
182 | |
183 | diff --git a/cronscripts/generate-contents-files.py b/cronscripts/generate-contents-files.py |
184 | index c82fb8e..c9ccb05 100755 |
185 | --- a/cronscripts/generate-contents-files.py |
186 | +++ b/cronscripts/generate-contents-files.py |
187 | @@ -5,7 +5,7 @@ |
188 | |
189 | """Master distro publishing script.""" |
190 | |
191 | -import _pythonpath |
192 | +import _pythonpath # noqa: F401 |
193 | |
194 | from lp.archivepublisher.scripts.generate_contents_files import ( |
195 | GenerateContentsFiles, |
196 | diff --git a/cronscripts/generate-ppa-htaccess.py b/cronscripts/generate-ppa-htaccess.py |
197 | index 877a339..1e45537 100755 |
198 | --- a/cronscripts/generate-ppa-htaccess.py |
199 | +++ b/cronscripts/generate-ppa-htaccess.py |
200 | @@ -5,7 +5,7 @@ |
201 | |
202 | # This script generates .htaccess files for private PPAs. |
203 | |
204 | -import _pythonpath |
205 | +import _pythonpath # noqa: F401 |
206 | |
207 | from lp.archivepublisher.scripts.generate_ppa_htaccess import ( |
208 | HtaccessTokenGenerator, |
209 | diff --git a/cronscripts/language-pack-exporter.py b/cronscripts/language-pack-exporter.py |
210 | index 8fee76c..e8579b6 100755 |
211 | --- a/cronscripts/language-pack-exporter.py |
212 | +++ b/cronscripts/language-pack-exporter.py |
213 | @@ -7,7 +7,7 @@ |
214 | |
215 | __metaclass__ = type |
216 | |
217 | -import _pythonpath |
218 | +import _pythonpath # noqa: F401 |
219 | |
220 | from lp.services.scripts.base import ( |
221 | LaunchpadCronScript, |
222 | diff --git a/cronscripts/librarian-feed-swift.py b/cronscripts/librarian-feed-swift.py |
223 | index 9da2c45..2f8201f 100755 |
224 | --- a/cronscripts/librarian-feed-swift.py |
225 | +++ b/cronscripts/librarian-feed-swift.py |
226 | @@ -7,7 +7,7 @@ |
227 | |
228 | __metaclass__ = type |
229 | |
230 | -import _pythonpath |
231 | +import _pythonpath # noqa: F401 |
232 | |
233 | import os |
234 | |
235 | diff --git a/cronscripts/librarian-gc.py b/cronscripts/librarian-gc.py |
236 | index fb662fb..5eb16f8 100755 |
237 | --- a/cronscripts/librarian-gc.py |
238 | +++ b/cronscripts/librarian-gc.py |
239 | @@ -12,7 +12,7 @@ rows in the database. |
240 | |
241 | __metaclass__ = type |
242 | |
243 | -import _pythonpath |
244 | +import _pythonpath # noqa: F401 |
245 | |
246 | import logging |
247 | |
248 | diff --git a/cronscripts/parse-librarian-apache-access-logs.py b/cronscripts/parse-librarian-apache-access-logs.py |
249 | index 3114efd..9736e06 100755 |
250 | --- a/cronscripts/parse-librarian-apache-access-logs.py |
251 | +++ b/cronscripts/parse-librarian-apache-access-logs.py |
252 | @@ -16,7 +16,7 @@ updating the counts of every LFA, in order to get through the backlog. |
253 | |
254 | __metaclass__ = type |
255 | |
256 | -import _pythonpath |
257 | +import _pythonpath # noqa: F401 |
258 | |
259 | from storm.sqlobject import SQLObjectNotFound |
260 | from zope.component import getUtility |
261 | diff --git a/cronscripts/parse-ppa-apache-access-logs.py b/cronscripts/parse-ppa-apache-access-logs.py |
262 | index 669e563..c70e4b0 100755 |
263 | --- a/cronscripts/parse-ppa-apache-access-logs.py |
264 | +++ b/cronscripts/parse-ppa-apache-access-logs.py |
265 | @@ -7,7 +7,7 @@ |
266 | |
267 | __metaclass__ = type |
268 | |
269 | -import _pythonpath |
270 | +import _pythonpath # noqa: F401 |
271 | |
272 | import functools |
273 | |
274 | diff --git a/cronscripts/ppa-generate-keys.py b/cronscripts/ppa-generate-keys.py |
275 | index 4c55e3b..febcd39 100755 |
276 | --- a/cronscripts/ppa-generate-keys.py |
277 | +++ b/cronscripts/ppa-generate-keys.py |
278 | @@ -7,7 +7,7 @@ |
279 | |
280 | __metaclass__ = type |
281 | |
282 | -import _pythonpath |
283 | +import _pythonpath # noqa: F401 |
284 | |
285 | from lp.services.config import config |
286 | from lp.soyuz.scripts.ppakeygenerator import PPAKeyGenerator |
287 | diff --git a/cronscripts/process-job-source-groups.py b/cronscripts/process-job-source-groups.py |
288 | index 8d10901..da533eb 100755 |
289 | --- a/cronscripts/process-job-source-groups.py |
290 | +++ b/cronscripts/process-job-source-groups.py |
291 | @@ -7,7 +7,7 @@ |
292 | |
293 | __metaclass__ = type |
294 | |
295 | -import _pythonpath |
296 | +import _pythonpath # noqa: F401 |
297 | |
298 | from optparse import IndentedHelpFormatter |
299 | import os |
300 | diff --git a/cronscripts/process-job-source.py b/cronscripts/process-job-source.py |
301 | index 98ff31f..3fa3013 100755 |
302 | --- a/cronscripts/process-job-source.py |
303 | +++ b/cronscripts/process-job-source.py |
304 | @@ -2,7 +2,7 @@ |
305 | # |
306 | # Copyright 2009, 2010 Canonical Ltd. This software is licensed under the |
307 | # GNU Affero General Public License version 3 (see the file LICENSE). |
308 | -import _pythonpath |
309 | +import _pythonpath # noqa: F401 |
310 | |
311 | from lp.services.job.scripts.process_job_source import ProcessJobSource |
312 | |
313 | diff --git a/cronscripts/process-mail.py b/cronscripts/process-mail.py |
314 | index 798f89c..68a745b 100755 |
315 | --- a/cronscripts/process-mail.py |
316 | +++ b/cronscripts/process-mail.py |
317 | @@ -5,7 +5,7 @@ |
318 | |
319 | """Fetches mail from the mail box and feeds them to the handlers.""" |
320 | |
321 | -import _pythonpath |
322 | +import _pythonpath # noqa: F401 |
323 | |
324 | from zope.component.interfaces import ComponentLookupError |
325 | |
326 | diff --git a/cronscripts/product-release-finder.py b/cronscripts/product-release-finder.py |
327 | index 41220f1..a949bc5 100755 |
328 | --- a/cronscripts/product-release-finder.py |
329 | +++ b/cronscripts/product-release-finder.py |
330 | @@ -9,7 +9,7 @@ Scan FTP and HTTP sites specified for each ProductSeries in the database |
331 | to identify files and create new ProductRelease records for them. |
332 | """ |
333 | |
334 | -import _pythonpath |
335 | +import _pythonpath # noqa: F401 |
336 | |
337 | from lp.registry.scripts.productreleasefinder.finder import ( |
338 | ProductReleaseFinder, |
339 | diff --git a/cronscripts/publish-ftpmaster.py b/cronscripts/publish-ftpmaster.py |
340 | index f7083cd..f085ba8 100755 |
341 | --- a/cronscripts/publish-ftpmaster.py |
342 | +++ b/cronscripts/publish-ftpmaster.py |
343 | @@ -5,7 +5,7 @@ |
344 | |
345 | """Master distro publishing script.""" |
346 | |
347 | -import _pythonpath |
348 | +import _pythonpath # noqa: F401 |
349 | |
350 | from lp.archivepublisher.scripts.publish_ftpmaster import PublishFTPMaster |
351 | |
352 | diff --git a/cronscripts/repack_git_repositories.py b/cronscripts/repack_git_repositories.py |
353 | index e553616..19ab32b 100755 |
354 | --- a/cronscripts/repack_git_repositories.py |
355 | +++ b/cronscripts/repack_git_repositories.py |
356 | @@ -3,7 +3,7 @@ |
357 | # Copyright 2021 Canonical Ltd. This software is licensed under the |
358 | # GNU Affero General Public License version 3 (see the file LICENSE). |
359 | |
360 | -import _pythonpath |
361 | +import _pythonpath # noqa: F401 |
362 | |
363 | from lp.code.scripts.repackgitrepository import RepackTunableLoop |
364 | from lp.services.config import config |
365 | diff --git a/cronscripts/request_daily_builds.py b/cronscripts/request_daily_builds.py |
366 | index 3d860df..4c69c13 100755 |
367 | --- a/cronscripts/request_daily_builds.py |
368 | +++ b/cronscripts/request_daily_builds.py |
369 | @@ -7,7 +7,7 @@ |
370 | |
371 | __metaclass__ = type |
372 | |
373 | -import _pythonpath |
374 | +import _pythonpath # noqa: F401 |
375 | |
376 | import transaction |
377 | from zope.component import getUtility |
378 | diff --git a/cronscripts/rosetta-approve-imports.py b/cronscripts/rosetta-approve-imports.py |
379 | index bfa2f64..8ae45ba 100755 |
380 | --- a/cronscripts/rosetta-approve-imports.py |
381 | +++ b/cronscripts/rosetta-approve-imports.py |
382 | @@ -5,7 +5,7 @@ |
383 | |
384 | """Perform auto-approvals and auto-blocks on translation import queue""" |
385 | |
386 | -import _pythonpath |
387 | +import _pythonpath # noqa: F401 |
388 | |
389 | from lp.translations.scripts.import_queue_gardener import ImportQueueGardener |
390 | |
391 | diff --git a/cronscripts/rosetta-export-queue.py b/cronscripts/rosetta-export-queue.py |
392 | index 1ed751f..1570cf7 100755 |
393 | --- a/cronscripts/rosetta-export-queue.py |
394 | +++ b/cronscripts/rosetta-export-queue.py |
395 | @@ -3,7 +3,7 @@ |
396 | # Copyright 2009-2011 Canonical Ltd. This software is licensed under the |
397 | # GNU Affero General Public License version 3 (see the file LICENSE). |
398 | |
399 | -import _pythonpath |
400 | +import _pythonpath # noqa: F401 |
401 | |
402 | from lp.services.database.policy import SlaveDatabasePolicy |
403 | from lp.services.scripts.base import LaunchpadCronScript |
404 | diff --git a/cronscripts/rosetta-pofile-stats.py b/cronscripts/rosetta-pofile-stats.py |
405 | index d0644a2..0d70c2c 100755 |
406 | --- a/cronscripts/rosetta-pofile-stats.py |
407 | +++ b/cronscripts/rosetta-pofile-stats.py |
408 | @@ -5,7 +5,7 @@ |
409 | |
410 | """Refresh and verify cached POFile translation statistics.""" |
411 | |
412 | -import _pythonpath |
413 | +import _pythonpath # noqa: F401 |
414 | |
415 | from lp.services.scripts.base import LaunchpadCronScript |
416 | from lp.translations.scripts.verify_pofile_stats import ( |
417 | diff --git a/cronscripts/rosetta-poimport.py b/cronscripts/rosetta-poimport.py |
418 | index 07214ee..8704250 100755 |
419 | --- a/cronscripts/rosetta-poimport.py |
420 | +++ b/cronscripts/rosetta-poimport.py |
421 | @@ -3,7 +3,7 @@ |
422 | # Copyright 2009 Canonical Ltd. This software is licensed under the |
423 | # GNU Affero General Public License version 3 (see the file LICENSE). |
424 | |
425 | -import _pythonpath |
426 | +import _pythonpath # noqa: F401 |
427 | |
428 | from lp.services.config import config |
429 | from lp.translations.scripts.po_import import TranslationsImport |
430 | diff --git a/cronscripts/send-bug-notifications.py b/cronscripts/send-bug-notifications.py |
431 | index 36f95e2..358775e 100755 |
432 | --- a/cronscripts/send-bug-notifications.py |
433 | +++ b/cronscripts/send-bug-notifications.py |
434 | @@ -11,7 +11,7 @@ date_emailed to the current date. |
435 | |
436 | __metaclass__ = type |
437 | |
438 | -import _pythonpath |
439 | +import _pythonpath # noqa: F401 |
440 | |
441 | from lp.bugs.scripts.bugnotification import SendBugNotifications |
442 | from lp.services.config import config |
443 | diff --git a/cronscripts/send-person-notifications.py b/cronscripts/send-person-notifications.py |
444 | index 466c0b4..37adfbd 100755 |
445 | --- a/cronscripts/send-person-notifications.py |
446 | +++ b/cronscripts/send-person-notifications.py |
447 | @@ -11,7 +11,7 @@ date_emailed to the current date. |
448 | |
449 | __metaclass__ = type |
450 | |
451 | -import _pythonpath |
452 | +import _pythonpath # noqa: F401 |
453 | |
454 | from lp.registry.scripts.personnotification import PersonNotificationManager |
455 | from lp.services.config import config |
456 | diff --git a/cronscripts/supermirror-pull.py b/cronscripts/supermirror-pull.py |
457 | index 5cf1196..8c94787 100755 |
458 | --- a/cronscripts/supermirror-pull.py |
459 | +++ b/cronscripts/supermirror-pull.py |
460 | @@ -3,7 +3,7 @@ |
461 | # Copyright 2009-2011 Canonical Ltd. This software is licensed under the |
462 | # GNU Affero General Public License version 3 (see the file LICENSE). |
463 | |
464 | -import _pythonpath |
465 | +import _pythonpath # noqa: F401 |
466 | |
467 | from optparse import OptionParser |
468 | |
469 | diff --git a/cronscripts/translations-export-to-branch.py b/cronscripts/translations-export-to-branch.py |
470 | index e732ee6..61b9ca0 100755 |
471 | --- a/cronscripts/translations-export-to-branch.py |
472 | +++ b/cronscripts/translations-export-to-branch.py |
473 | @@ -16,7 +16,7 @@ have been updated. For the rest, the script talks to the slave store. |
474 | __metaclass__ = type |
475 | __all__ = [] |
476 | |
477 | -import _pythonpath |
478 | +import _pythonpath # noqa: F401 |
479 | |
480 | from lp.translations.scripts.translations_to_branch import ( |
481 | ExportTranslationsToBranch, |
482 | diff --git a/cronscripts/update-bugtask-targetnamecaches.py b/cronscripts/update-bugtask-targetnamecaches.py |
483 | index 6eb3556..2da1e8d 100755 |
484 | --- a/cronscripts/update-bugtask-targetnamecaches.py |
485 | +++ b/cronscripts/update-bugtask-targetnamecaches.py |
486 | @@ -5,7 +5,7 @@ |
487 | |
488 | # This script updates the cached stats in the system |
489 | |
490 | -import _pythonpath |
491 | +import _pythonpath # noqa: F401 |
492 | |
493 | from lp.bugs.scripts.bugtasktargetnamecaches import ( |
494 | BugTaskTargetNameCacheUpdater, |
495 | diff --git a/cronscripts/update-bugzilla-remote-components.py b/cronscripts/update-bugzilla-remote-components.py |
496 | index 48be5d9..72afc5d 100755 |
497 | --- a/cronscripts/update-bugzilla-remote-components.py |
498 | +++ b/cronscripts/update-bugzilla-remote-components.py |
499 | @@ -3,7 +3,7 @@ |
500 | # Copyright 2010-2011 Canonical Ltd. This software is licensed under the |
501 | # GNU Affero General Public License version 3 (see the file LICENSE). |
502 | |
503 | -import _pythonpath |
504 | +import _pythonpath # noqa: F401 |
505 | |
506 | import time |
507 | |
508 | diff --git a/cronscripts/update-cve.py b/cronscripts/update-cve.py |
509 | index 1ad1a58..add5993 100755 |
510 | --- a/cronscripts/update-cve.py |
511 | +++ b/cronscripts/update-cve.py |
512 | @@ -8,7 +8,7 @@ that all of the known CVE's are fully registered in Launchpad.""" |
513 | |
514 | __metaclass__ = type |
515 | |
516 | -import _pythonpath |
517 | +import _pythonpath # noqa: F401 |
518 | |
519 | from lp.bugs.scripts.cveimport import CVEUpdater |
520 | from lp.services.config import config |
521 | diff --git a/cronscripts/update-database-stats.py b/cronscripts/update-database-stats.py |
522 | index 30fa6e5..4f6a52f 100755 |
523 | --- a/cronscripts/update-database-stats.py |
524 | +++ b/cronscripts/update-database-stats.py |
525 | @@ -6,7 +6,7 @@ |
526 | |
527 | __metaclass__ = type |
528 | |
529 | -import _pythonpath |
530 | +import _pythonpath # noqa: F401 |
531 | |
532 | from lp.registry.model.person import Person |
533 | from lp.services.database.interfaces import IMasterStore |
534 | diff --git a/cronscripts/update-pkgcache.py b/cronscripts/update-pkgcache.py |
535 | index 9b3d766..1cf7186 100755 |
536 | --- a/cronscripts/update-pkgcache.py |
537 | +++ b/cronscripts/update-pkgcache.py |
538 | @@ -7,7 +7,7 @@ |
539 | # We use this for fast source package searching (as opposed to joining |
540 | # through gazillions of publishing tables). |
541 | |
542 | -import _pythonpath |
543 | +import _pythonpath # noqa: F401 |
544 | |
545 | from zope.component import getUtility |
546 | |
547 | diff --git a/cronscripts/update-remote-product.py b/cronscripts/update-remote-product.py |
548 | index 91657fc..bbdb619 100755 |
549 | --- a/cronscripts/update-remote-product.py |
550 | +++ b/cronscripts/update-remote-product.py |
551 | @@ -9,7 +9,7 @@ This script sets the remote_product string value on Launchpad Products |
552 | by looking it up from one of the product's bug watches. |
553 | """ |
554 | |
555 | -import _pythonpath |
556 | +import _pythonpath # noqa: F401 |
557 | |
558 | import time |
559 | |
560 | diff --git a/cronscripts/update-sourceforge-remote-products.py b/cronscripts/update-sourceforge-remote-products.py |
561 | index 338c94c..7b4a0c6 100755 |
562 | --- a/cronscripts/update-sourceforge-remote-products.py |
563 | +++ b/cronscripts/update-sourceforge-remote-products.py |
564 | @@ -5,7 +5,7 @@ |
565 | |
566 | """Cron job to update remote_products using SourceForge project data.""" |
567 | |
568 | -import _pythonpath |
569 | +import _pythonpath # noqa: F401 |
570 | |
571 | import time |
572 | |
573 | diff --git a/cronscripts/update-standing.py b/cronscripts/update-standing.py |
574 | index 3cb2443..0a841bb 100755 |
575 | --- a/cronscripts/update-standing.py |
576 | +++ b/cronscripts/update-standing.py |
577 | @@ -9,7 +9,7 @@ __metaclass__ = type |
578 | __all__ = [] |
579 | |
580 | |
581 | -import _pythonpath |
582 | +import _pythonpath # noqa: F401 |
583 | |
584 | from lp.registry.scripts.standing import UpdatePersonalStanding |
585 | from lp.services.config import config |
586 | diff --git a/cronscripts/update-stats.py b/cronscripts/update-stats.py |
587 | index db6560c..43d3602 100755 |
588 | --- a/cronscripts/update-stats.py |
589 | +++ b/cronscripts/update-stats.py |
590 | @@ -5,7 +5,7 @@ |
591 | |
592 | # This script updates the cached stats in the system |
593 | |
594 | -import _pythonpath |
595 | +import _pythonpath # noqa: F401 |
596 | |
597 | from zope.component import getUtility |
598 | |
599 | diff --git a/database/replication/preamble.py b/database/replication/preamble.py |
600 | index 8f2b38d..87d0d9e 100755 |
601 | --- a/database/replication/preamble.py |
602 | +++ b/database/replication/preamble.py |
603 | @@ -11,7 +11,7 @@ from __future__ import absolute_import, print_function |
604 | __metaclass__ = type |
605 | __all__ = [] |
606 | |
607 | -import _pythonpath |
608 | +import _pythonpath # noqa: F401 |
609 | |
610 | from optparse import OptionParser |
611 | import time |
612 | diff --git a/database/replication/sync.py b/database/replication/sync.py |
613 | index d07d52d..0e44ada 100755 |
614 | --- a/database/replication/sync.py |
615 | +++ b/database/replication/sync.py |
616 | @@ -8,7 +8,7 @@ |
617 | __metaclass__ = type |
618 | __all__ = [] |
619 | |
620 | -import _pythonpath |
621 | +import _pythonpath # noqa: F401 |
622 | |
623 | from optparse import OptionParser |
624 | |
625 | diff --git a/database/schema/emptytables.py b/database/schema/emptytables.py |
626 | index e8ef47d..e035532 100755 |
627 | --- a/database/schema/emptytables.py |
628 | +++ b/database/schema/emptytables.py |
629 | @@ -9,7 +9,7 @@ from __future__ import absolute_import, print_function |
630 | |
631 | __metaclass__ = type |
632 | |
633 | -import _pythonpath |
634 | +import _pythonpath # noqa: F401 |
635 | |
636 | from optparse import OptionParser |
637 | |
638 | diff --git a/database/schema/fti.py b/database/schema/fti.py |
639 | index e18d634..fa15c9a 100755 |
640 | --- a/database/schema/fti.py |
641 | +++ b/database/schema/fti.py |
642 | @@ -12,7 +12,7 @@ from __future__ import absolute_import, print_function |
643 | |
644 | __metaclass__ = type |
645 | |
646 | -import _pythonpath |
647 | +import _pythonpath # noqa: F401 |
648 | |
649 | from optparse import OptionParser |
650 | import sys |
651 | diff --git a/database/schema/full-update.py b/database/schema/full-update.py |
652 | index ba1b4d0..c217412 100755 |
653 | --- a/database/schema/full-update.py |
654 | +++ b/database/schema/full-update.py |
655 | @@ -4,7 +4,7 @@ |
656 | |
657 | """Full update process.""" |
658 | |
659 | -import _pythonpath |
660 | +import _pythonpath # noqa: F401 |
661 | |
662 | from datetime import datetime |
663 | from optparse import OptionParser |
664 | diff --git a/database/schema/online_fti_updater.py b/database/schema/online_fti_updater.py |
665 | index 1bc6335..456b22f 100755 |
666 | --- a/database/schema/online_fti_updater.py |
667 | +++ b/database/schema/online_fti_updater.py |
668 | @@ -12,7 +12,7 @@ from __future__ import absolute_import, print_function |
669 | |
670 | __metaclass__ = type |
671 | |
672 | -import _pythonpath |
673 | +import _pythonpath # noqa: F401 |
674 | |
675 | import psycopg |
676 | |
677 | diff --git a/database/schema/preflight.py b/database/schema/preflight.py |
678 | index 5e32dc0..6f26ddc 100755 |
679 | --- a/database/schema/preflight.py |
680 | +++ b/database/schema/preflight.py |
681 | @@ -11,7 +11,7 @@ __all__ = [ |
682 | 'streaming_sync', |
683 | ] |
684 | |
685 | -import _pythonpath |
686 | +import _pythonpath # noqa: F401 |
687 | |
688 | from datetime import timedelta |
689 | from optparse import OptionParser |
690 | diff --git a/database/schema/reset_sequences.py b/database/schema/reset_sequences.py |
691 | index 8f2d367..38f379a 100755 |
692 | --- a/database/schema/reset_sequences.py |
693 | +++ b/database/schema/reset_sequences.py |
694 | @@ -14,7 +14,7 @@ maximum value currently found in the corresponding table. |
695 | |
696 | __metaclass__ = type |
697 | |
698 | -import _pythonpath |
699 | +import _pythonpath # noqa: F401 |
700 | |
701 | from optparse import OptionParser |
702 | |
703 | diff --git a/database/schema/security.py b/database/schema/security.py |
704 | index bc5551d..f5910ae 100755 |
705 | --- a/database/schema/security.py |
706 | +++ b/database/schema/security.py |
707 | @@ -5,7 +5,7 @@ |
708 | |
709 | __metaclass__ = type |
710 | |
711 | -import _pythonpath |
712 | +import _pythonpath # noqa: F401 |
713 | |
714 | from collections import defaultdict |
715 | from optparse import OptionParser |
716 | diff --git a/database/schema/sort_sql.py b/database/schema/sort_sql.py |
717 | index 3b04f8c..bde6bfa 100755 |
718 | --- a/database/schema/sort_sql.py |
719 | +++ b/database/schema/sort_sql.py |
720 | @@ -26,7 +26,7 @@ happen by table, with one block of statements for each table. |
721 | |
722 | __metaclass__ = type |
723 | |
724 | -import _pythonpath |
725 | +import _pythonpath # noqa: F401 |
726 | |
727 | import sys |
728 | |
729 | diff --git a/database/schema/unautovacuumable.py b/database/schema/unautovacuumable.py |
730 | index cfa83e8..4e09282 100755 |
731 | --- a/database/schema/unautovacuumable.py |
732 | +++ b/database/schema/unautovacuumable.py |
733 | @@ -16,7 +16,7 @@ Don't run this on any production systems. |
734 | __metaclass__ = type |
735 | __all__ = [] |
736 | |
737 | -import _pythonpath |
738 | +import _pythonpath # noqa: F401 |
739 | |
740 | from optparse import OptionParser |
741 | import sys |
742 | diff --git a/database/schema/upgrade.py b/database/schema/upgrade.py |
743 | index e97b6e7..1b92d25 100755 |
744 | --- a/database/schema/upgrade.py |
745 | +++ b/database/schema/upgrade.py |
746 | @@ -9,7 +9,7 @@ Apply all outstanding schema patches to an existing launchpad database |
747 | |
748 | __metaclass__ = type |
749 | |
750 | -import _pythonpath |
751 | +import _pythonpath # noqa: F401 |
752 | |
753 | import glob |
754 | from optparse import OptionParser |
755 | diff --git a/lib/lp/services/scripts/tests/cronscript-crash.py b/lib/lp/services/scripts/tests/cronscript-crash.py |
756 | index d882aa0..09cba19 100755 |
757 | --- a/lib/lp/services/scripts/tests/cronscript-crash.py |
758 | +++ b/lib/lp/services/scripts/tests/cronscript-crash.py |
759 | @@ -7,7 +7,7 @@ |
760 | __metaclass__ = type |
761 | __all__ = [] |
762 | |
763 | -import _pythonpath |
764 | +import _pythonpath # noqa: F401 |
765 | |
766 | from lp.services.scripts.base import LaunchpadCronScript |
767 | from lp.services.webapp.errorlog import globalErrorUtility |
768 | diff --git a/scripts/add-missing-builds.py b/scripts/add-missing-builds.py |
769 | index 17776bb..792279f 100755 |
770 | --- a/scripts/add-missing-builds.py |
771 | +++ b/scripts/add-missing-builds.py |
772 | @@ -3,7 +3,7 @@ |
773 | # Copyright 2010 Canonical Ltd. This software is licensed under the |
774 | # GNU Affero General Public License version 3 (see the file LICENSE). |
775 | |
776 | -import _pythonpath |
777 | +import _pythonpath # noqa: F401 |
778 | |
779 | from lp.services.config import config |
780 | from lp.soyuz.scripts.add_missing_builds import AddMissingBuilds |
781 | diff --git a/scripts/branch-rewrite.py b/scripts/branch-rewrite.py |
782 | index 1e00e69..e56db27 100755 |
783 | --- a/scripts/branch-rewrite.py |
784 | +++ b/scripts/branch-rewrite.py |
785 | @@ -12,7 +12,7 @@ lp.codehosting.rewrite.BranchRewriter for the logic of the rewritemap. |
786 | |
787 | from __future__ import absolute_import, print_function, unicode_literals |
788 | |
789 | -import _pythonpath |
790 | +import _pythonpath # noqa: F401 |
791 | |
792 | import os |
793 | import sys |
794 | diff --git a/scripts/bug-export.py b/scripts/bug-export.py |
795 | index 15bf58e..8c39998 100755 |
796 | --- a/scripts/bug-export.py |
797 | +++ b/scripts/bug-export.py |
798 | @@ -2,7 +2,7 @@ |
799 | # |
800 | # Copyright 2009 Canonical Ltd. This software is licensed under the |
801 | # GNU Affero General Public License version 3 (see the file LICENSE). |
802 | -import _pythonpath |
803 | +import _pythonpath # noqa: F401 |
804 | |
805 | import sys |
806 | |
807 | diff --git a/scripts/bug-import.py b/scripts/bug-import.py |
808 | index ad0c0ab..c2d4e71 100755 |
809 | --- a/scripts/bug-import.py |
810 | +++ b/scripts/bug-import.py |
811 | @@ -3,7 +3,7 @@ |
812 | # Copyright 2009-2011 Canonical Ltd. This software is licensed under the |
813 | # GNU Affero General Public License version 3 (see the file LICENSE). |
814 | |
815 | -import _pythonpath |
816 | +import _pythonpath # noqa: F401 |
817 | |
818 | import logging |
819 | |
820 | diff --git a/scripts/bugsummary-rebuild.py b/scripts/bugsummary-rebuild.py |
821 | index 5ddc78c..fe6f4f1 100755 |
822 | --- a/scripts/bugsummary-rebuild.py |
823 | +++ b/scripts/bugsummary-rebuild.py |
824 | @@ -3,7 +3,7 @@ |
825 | # Copyright 2012 Canonical Ltd. This software is licensed under the |
826 | # GNU Affero General Public License version 3 (see the file LICENSE). |
827 | |
828 | -import _pythonpath |
829 | +import _pythonpath # noqa: F401 |
830 | |
831 | from lp.bugs.scripts.bugsummaryrebuild import BugSummaryRebuildTunableLoop |
832 | from lp.services.scripts.base import LaunchpadScript |
833 | diff --git a/scripts/cache-country-mirrors.py b/scripts/cache-country-mirrors.py |
834 | index 844d867..3f09049 100755 |
835 | --- a/scripts/cache-country-mirrors.py |
836 | +++ b/scripts/cache-country-mirrors.py |
837 | @@ -10,7 +10,7 @@ named like cc.txt (where cc is the two letter country code), |
838 | containing the archive mirrors for that country. |
839 | """ |
840 | |
841 | -import _pythonpath |
842 | +import _pythonpath # noqa: F401 |
843 | |
844 | import os |
845 | import shutil |
846 | diff --git a/scripts/close-account.py b/scripts/close-account.py |
847 | index a66c679..05936c0 100755 |
848 | --- a/scripts/close-account.py |
849 | +++ b/scripts/close-account.py |
850 | @@ -5,7 +5,7 @@ |
851 | |
852 | """Remove personal details of a user from the database, leaving a stub.""" |
853 | |
854 | -import _pythonpath |
855 | +import _pythonpath # noqa: F401 |
856 | |
857 | from lp.registry.scripts.closeaccount import CloseAccountScript |
858 | |
859 | diff --git a/scripts/convert-person-to-team.py b/scripts/convert-person-to-team.py |
860 | index 8c6f714..f516339 100755 |
861 | --- a/scripts/convert-person-to-team.py |
862 | +++ b/scripts/convert-person-to-team.py |
863 | @@ -9,7 +9,7 @@ Only people whose account_status is NOACCOUNT can be turned into teams. |
864 | """ |
865 | |
866 | |
867 | -import _pythonpath |
868 | +import _pythonpath # noqa: F401 |
869 | |
870 | from zope.component import getUtility |
871 | |
872 | diff --git a/scripts/copy-distroseries-translations.py b/scripts/copy-distroseries-translations.py |
873 | index 08ce72c..62c34f9 100755 |
874 | --- a/scripts/copy-distroseries-translations.py |
875 | +++ b/scripts/copy-distroseries-translations.py |
876 | @@ -10,7 +10,7 @@ provide a new distroseries in a series with its initial translation data. |
877 | Only current translations are copied. |
878 | """ |
879 | |
880 | -import _pythonpath |
881 | +import _pythonpath # noqa: F401 |
882 | |
883 | import sys |
884 | |
885 | diff --git a/scripts/copy-signingkeys.py b/scripts/copy-signingkeys.py |
886 | index 4f226bf..e5d3f56 100755 |
887 | --- a/scripts/copy-signingkeys.py |
888 | +++ b/scripts/copy-signingkeys.py |
889 | @@ -4,7 +4,7 @@ |
890 | |
891 | """Script to copy signing keys between archives.""" |
892 | |
893 | -import _pythonpath |
894 | +import _pythonpath # noqa: F401 |
895 | |
896 | from lp.archivepublisher.scripts.copy_signingkeys import CopySigningKeysScript |
897 | from lp.services.config import config |
898 | diff --git a/scripts/create-bot-account.py b/scripts/create-bot-account.py |
899 | index 914bfd4..f85bbb4 100755 |
900 | --- a/scripts/create-bot-account.py |
901 | +++ b/scripts/create-bot-account.py |
902 | @@ -3,7 +3,7 @@ |
903 | # Copyright 2017 Canonical Ltd. This software is licensed under the |
904 | # GNU Affero General Public License version 3 (see the file LICENSE). |
905 | |
906 | -import _pythonpath |
907 | +import _pythonpath # noqa: F401 |
908 | |
909 | from lp.registry.scripts.createbotaccount import CreateBotAccountScript |
910 | |
911 | diff --git a/scripts/fix-translations-opening.py b/scripts/fix-translations-opening.py |
912 | index 01011a6..7321812 100755 |
913 | --- a/scripts/fix-translations-opening.py |
914 | +++ b/scripts/fix-translations-opening.py |
915 | @@ -5,7 +5,7 @@ |
916 | |
917 | __metaclass__ = type |
918 | |
919 | -import _pythonpath |
920 | +import _pythonpath # noqa: F401 |
921 | |
922 | from zope.component import getUtility |
923 | from zope.interface import implementer |
924 | diff --git a/scripts/ftpmaster-tools/buildd-mass-retry.py b/scripts/ftpmaster-tools/buildd-mass-retry.py |
925 | index 8e45425..b7dbaeb 100755 |
926 | --- a/scripts/ftpmaster-tools/buildd-mass-retry.py |
927 | +++ b/scripts/ftpmaster-tools/buildd-mass-retry.py |
928 | @@ -11,7 +11,7 @@ It supports build collections based distroseries and/or distroarchseries. |
929 | |
930 | __metaclass__ = type |
931 | |
932 | -import _pythonpath |
933 | +import _pythonpath # noqa: F401 |
934 | |
935 | import transaction |
936 | from zope.component import getUtility |
937 | diff --git a/scripts/ftpmaster-tools/obsolete-distroseries.py b/scripts/ftpmaster-tools/obsolete-distroseries.py |
938 | index a4de92f..7040ba6 100755 |
939 | --- a/scripts/ftpmaster-tools/obsolete-distroseries.py |
940 | +++ b/scripts/ftpmaster-tools/obsolete-distroseries.py |
941 | @@ -9,7 +9,7 @@ This script will obsolete (schedule for removal) all published packages |
942 | in an obsolete distroseries. |
943 | """ |
944 | |
945 | -import _pythonpath |
946 | +import _pythonpath # noqa: F401 |
947 | |
948 | from lp.services.config import config |
949 | from lp.soyuz.scripts.obsolete_distroseries import ObsoleteDistroseries |
950 | diff --git a/scripts/generate-access-token.py b/scripts/generate-access-token.py |
951 | index 55d7acd..0ff3723 100755 |
952 | --- a/scripts/generate-access-token.py |
953 | +++ b/scripts/generate-access-token.py |
954 | @@ -6,7 +6,7 @@ |
955 | """Conveniently generates access token and outputs relevant settings.""" |
956 | |
957 | |
958 | -import _pythonpath |
959 | +import _pythonpath # noqa: F401 |
960 | |
961 | import sys |
962 | |
963 | diff --git a/scripts/get-stacked-on-branches.py b/scripts/get-stacked-on-branches.py |
964 | index 439af1a..d017a59 100755 |
965 | --- a/scripts/get-stacked-on-branches.py |
966 | +++ b/scripts/get-stacked-on-branches.py |
967 | @@ -25,7 +25,7 @@ from __future__ import absolute_import, print_function, unicode_literals |
968 | |
969 | __metaclass__ = type |
970 | |
971 | -import _pythonpath |
972 | +import _pythonpath # noqa: F401 |
973 | |
974 | from optparse import OptionParser |
975 | |
976 | diff --git a/scripts/gina.py b/scripts/gina.py |
977 | index 151c1bc..5f36be4 100755 |
978 | --- a/scripts/gina.py |
979 | +++ b/scripts/gina.py |
980 | @@ -16,7 +16,7 @@ The callstack is essentially: |
981 | |
982 | __metaclass__ = type |
983 | |
984 | -import _pythonpath |
985 | +import _pythonpath # noqa: F401 |
986 | |
987 | import sys |
988 | |
989 | diff --git a/scripts/import-debian-bugs.py b/scripts/import-debian-bugs.py |
990 | index 204b0a3..209f620 100755 |
991 | --- a/scripts/import-debian-bugs.py |
992 | +++ b/scripts/import-debian-bugs.py |
993 | @@ -11,7 +11,7 @@ Launchpad, with the real Debian bug linked as a bug watch. |
994 | An Ubuntu task will be created for each imported bug. |
995 | """ |
996 | |
997 | -import _pythonpath |
998 | +import _pythonpath # noqa: F401 |
999 | |
1000 | from lp.bugs.scripts.importdebianbugs import import_debian_bugs |
1001 | from lp.services.config import config |
1002 | diff --git a/scripts/librarian-report.py b/scripts/librarian-report.py |
1003 | index 10b801d..6bb0381 100755 |
1004 | --- a/scripts/librarian-report.py |
1005 | +++ b/scripts/librarian-report.py |
1006 | @@ -10,7 +10,7 @@ from __future__ import absolute_import, print_function, unicode_literals |
1007 | __metaclass__ = type |
1008 | __all__ = [] |
1009 | |
1010 | -import _pythonpath |
1011 | +import _pythonpath # noqa: F401 |
1012 | |
1013 | from optparse import OptionParser |
1014 | import sys |
1015 | diff --git a/scripts/list-team-members b/scripts/list-team-members |
1016 | index fcc8948..b9f0c52 100755 |
1017 | --- a/scripts/list-team-members |
1018 | +++ b/scripts/list-team-members |
1019 | @@ -5,7 +5,7 @@ |
1020 | |
1021 | __metaclass__ = type |
1022 | |
1023 | -import _pythonpath |
1024 | +import _pythonpath # noqa: F401 |
1025 | |
1026 | import logging |
1027 | import sys |
1028 | diff --git a/scripts/memcached-stats.py b/scripts/memcached-stats.py |
1029 | index 665c3dd..837a3cf 100755 |
1030 | --- a/scripts/memcached-stats.py |
1031 | +++ b/scripts/memcached-stats.py |
1032 | @@ -9,7 +9,7 @@ from __future__ import absolute_import, print_function, unicode_literals |
1033 | __metaclass__ = type |
1034 | __all__ = [] |
1035 | |
1036 | -import _pythonpath |
1037 | +import _pythonpath # noqa: F401 |
1038 | |
1039 | from optparse import OptionParser |
1040 | from pprint import pprint |
1041 | diff --git a/scripts/migrate-librarian-content-md5.py b/scripts/migrate-librarian-content-md5.py |
1042 | index 0a1b7c8..72857e0 100755 |
1043 | --- a/scripts/migrate-librarian-content-md5.py |
1044 | +++ b/scripts/migrate-librarian-content-md5.py |
1045 | @@ -9,7 +9,7 @@ from __future__ import absolute_import, print_function, unicode_literals |
1046 | |
1047 | __metaclass__ = type |
1048 | |
1049 | -import _pythonpath |
1050 | +import _pythonpath # noqa: F401 |
1051 | |
1052 | import os |
1053 | import subprocess |
1054 | diff --git a/scripts/mirror-branch.py b/scripts/mirror-branch.py |
1055 | index 69f8b33..7fd4861 100755 |
1056 | --- a/scripts/mirror-branch.py |
1057 | +++ b/scripts/mirror-branch.py |
1058 | @@ -26,7 +26,7 @@ Where: |
1059 | # not intended to be run by itself. |
1060 | |
1061 | |
1062 | -import _pythonpath |
1063 | +import _pythonpath # noqa: F401 |
1064 | |
1065 | from optparse import OptionParser |
1066 | import os |
1067 | diff --git a/scripts/mlist-import.py b/scripts/mlist-import.py |
1068 | index 287c038..7494762 100755 |
1069 | --- a/scripts/mlist-import.py |
1070 | +++ b/scripts/mlist-import.py |
1071 | @@ -16,7 +16,7 @@ __all__ = [ |
1072 | ] |
1073 | |
1074 | |
1075 | -import _pythonpath |
1076 | +import _pythonpath # noqa: F401 |
1077 | |
1078 | import logging |
1079 | import sys |
1080 | diff --git a/scripts/modified-branches.py b/scripts/modified-branches.py |
1081 | index f0fa722..81d2c30 100755 |
1082 | --- a/scripts/modified-branches.py |
1083 | +++ b/scripts/modified-branches.py |
1084 | @@ -8,7 +8,7 @@ |
1085 | This script will be used by IS for the rsync backups. |
1086 | """ |
1087 | |
1088 | -import _pythonpath |
1089 | +import _pythonpath # noqa: F401 |
1090 | |
1091 | from lp.codehosting.scripts.modifiedbranches import ModifiedBranchesScript |
1092 | |
1093 | diff --git a/scripts/populate-archive.py b/scripts/populate-archive.py |
1094 | index 329e33f..a5cb686 100755 |
1095 | --- a/scripts/populate-archive.py |
1096 | +++ b/scripts/populate-archive.py |
1097 | @@ -9,7 +9,7 @@ |
1098 | the script will abort with an error. |
1099 | """ |
1100 | |
1101 | -import _pythonpath |
1102 | +import _pythonpath # noqa: F401 |
1103 | |
1104 | from lp.services.config import config |
1105 | from lp.soyuz.scripts.populate_archive import ArchivePopulator |
1106 | diff --git a/scripts/populate-distroseriesdiff.py b/scripts/populate-distroseriesdiff.py |
1107 | index 624290b..8fc6a08 100755 |
1108 | --- a/scripts/populate-distroseriesdiff.py |
1109 | +++ b/scripts/populate-distroseriesdiff.py |
1110 | @@ -5,7 +5,7 @@ |
1111 | |
1112 | __metaclass__ = type |
1113 | |
1114 | -import _pythonpath |
1115 | +import _pythonpath # noqa: F401 |
1116 | |
1117 | from lp.registry.scripts.populate_distroseriesdiff import ( |
1118 | PopulateDistroSeriesDiff, |
1119 | diff --git a/scripts/ppa-report.py b/scripts/ppa-report.py |
1120 | index 772c605..6c494c5 100755 |
1121 | --- a/scripts/ppa-report.py |
1122 | +++ b/scripts/ppa-report.py |
1123 | @@ -3,7 +3,7 @@ |
1124 | # Copyright 2009 Canonical Ltd. This software is licensed under the |
1125 | # GNU Affero General Public License version 3 (see the file LICENSE). |
1126 | |
1127 | -import _pythonpath |
1128 | +import _pythonpath # noqa: F401 |
1129 | |
1130 | from lp.soyuz.scripts.ppareport import PPAReportScript |
1131 | |
1132 | diff --git a/scripts/process-accepted.py b/scripts/process-accepted.py |
1133 | index 5a77572..453a7c2 100755 |
1134 | --- a/scripts/process-accepted.py |
1135 | +++ b/scripts/process-accepted.py |
1136 | @@ -10,7 +10,7 @@ distribution and then gets on and deals with any accepted items, preparing |
1137 | them for publishing as appropriate. |
1138 | """ |
1139 | |
1140 | -import _pythonpath |
1141 | +import _pythonpath # noqa: F401 |
1142 | |
1143 | from lp.archivepublisher.scripts.processaccepted import ProcessAccepted |
1144 | |
1145 | diff --git a/scripts/process-death-row.py b/scripts/process-death-row.py |
1146 | index 7d903fb..98b9fd0 100755 |
1147 | --- a/scripts/process-death-row.py |
1148 | +++ b/scripts/process-death-row.py |
1149 | @@ -21,7 +21,7 @@ the archive tree. |
1150 | There is also a 'dry-run' mode that can be used to operate on the real |
1151 | archive tree without removing the files. |
1152 | """ |
1153 | -import _pythonpath |
1154 | +import _pythonpath # noqa: F401 |
1155 | |
1156 | from lp.archivepublisher.scripts.processdeathrow import DeathRowProcessor |
1157 | |
1158 | diff --git a/scripts/process-one-mail.py b/scripts/process-one-mail.py |
1159 | index 3557d8d..4565e5c 100755 |
1160 | --- a/scripts/process-one-mail.py |
1161 | +++ b/scripts/process-one-mail.py |
1162 | @@ -5,7 +5,7 @@ |
1163 | |
1164 | """Process one email message, read from stdin.""" |
1165 | |
1166 | -import _pythonpath |
1167 | +import _pythonpath # noqa: F401 |
1168 | |
1169 | import sys |
1170 | |
1171 | diff --git a/scripts/process-upload.py b/scripts/process-upload.py |
1172 | index a83d672..8a18f7e 100755 |
1173 | --- a/scripts/process-upload.py |
1174 | +++ b/scripts/process-upload.py |
1175 | @@ -9,7 +9,7 @@ Given a bunch of context information and a bunch of files, process them as |
1176 | an upload to a distro/whatever within the launchpad. |
1177 | """ |
1178 | |
1179 | -import _pythonpath |
1180 | +import _pythonpath # noqa: F401 |
1181 | |
1182 | from lp.archiveuploader.scripts.processupload import ProcessUpload |
1183 | |
1184 | diff --git a/scripts/publish-distro.py b/scripts/publish-distro.py |
1185 | index f32aa4e..1d9b1c4 100755 |
1186 | --- a/scripts/publish-distro.py |
1187 | +++ b/scripts/publish-distro.py |
1188 | @@ -3,7 +3,7 @@ |
1189 | # Copyright 2009-2011 Canonical Ltd. This software is licensed under the |
1190 | # GNU Affero General Public License version 3 (see the file LICENSE). |
1191 | |
1192 | -import _pythonpath |
1193 | +import _pythonpath # noqa: F401 |
1194 | |
1195 | from lp.archivepublisher.scripts.publishdistro import PublishDistro |
1196 | |
1197 | diff --git a/scripts/rosetta/fix_translation_credits.py b/scripts/rosetta/fix_translation_credits.py |
1198 | index 584993c..bcc396d 100755 |
1199 | --- a/scripts/rosetta/fix_translation_credits.py |
1200 | +++ b/scripts/rosetta/fix_translation_credits.py |
1201 | @@ -5,7 +5,7 @@ |
1202 | |
1203 | """Mark all translation credits as translated.""" |
1204 | |
1205 | -import _pythonpath |
1206 | +import _pythonpath # noqa: F401 |
1207 | |
1208 | from lp.services.scripts.base import LaunchpadScript |
1209 | from lp.translations.scripts.fix_translation_credits import ( |
1210 | diff --git a/scripts/rosetta/gettext_check_messages.py b/scripts/rosetta/gettext_check_messages.py |
1211 | index 93cc140..abcd1a2 100755 |
1212 | --- a/scripts/rosetta/gettext_check_messages.py |
1213 | +++ b/scripts/rosetta/gettext_check_messages.py |
1214 | @@ -18,7 +18,7 @@ enabled instead. |
1215 | |
1216 | __metaclass__ = type |
1217 | |
1218 | -import _pythonpath |
1219 | +import _pythonpath # noqa: F401 |
1220 | |
1221 | from lp.translations.scripts.gettext_check_messages import ( |
1222 | GettextCheckMessages, |
1223 | diff --git a/scripts/rosetta/merge-existing-packagings.py b/scripts/rosetta/merge-existing-packagings.py |
1224 | index 8247eac..5840aa6 100755 |
1225 | --- a/scripts/rosetta/merge-existing-packagings.py |
1226 | +++ b/scripts/rosetta/merge-existing-packagings.py |
1227 | @@ -5,7 +5,7 @@ |
1228 | |
1229 | __metaclass__ = type |
1230 | |
1231 | -import _pythonpath |
1232 | +import _pythonpath # noqa: F401 |
1233 | |
1234 | from lp.translations.utilities.translationmerger import MergeExistingPackagings |
1235 | |
1236 | diff --git a/scripts/rosetta/message-sharing-merge.py b/scripts/rosetta/message-sharing-merge.py |
1237 | index 3d60a1f..4d79ec2 100755 |
1238 | --- a/scripts/rosetta/message-sharing-merge.py |
1239 | +++ b/scripts/rosetta/message-sharing-merge.py |
1240 | @@ -5,7 +5,7 @@ |
1241 | |
1242 | __metaclass__ = type |
1243 | |
1244 | -import _pythonpath |
1245 | +import _pythonpath # noqa: F401 |
1246 | |
1247 | from lp.translations.utilities.translationmerger import MessageSharingMerge |
1248 | |
1249 | diff --git a/scripts/rosetta/migrate_current_flag.py b/scripts/rosetta/migrate_current_flag.py |
1250 | index d3bcb2e..aaad20a 100755 |
1251 | --- a/scripts/rosetta/migrate_current_flag.py |
1252 | +++ b/scripts/rosetta/migrate_current_flag.py |
1253 | @@ -5,7 +5,7 @@ |
1254 | |
1255 | """Migrate current flag to imported flag on project translations.""" |
1256 | |
1257 | -import _pythonpath |
1258 | +import _pythonpath # noqa: F401 |
1259 | |
1260 | from lp.services.scripts.base import LaunchpadScript |
1261 | from lp.translations.scripts.migrate_current_flag import ( |
1262 | diff --git a/scripts/rosetta/pottery-generate-intltool.py b/scripts/rosetta/pottery-generate-intltool.py |
1263 | index 7b06056..de62cbc 100755 |
1264 | --- a/scripts/rosetta/pottery-generate-intltool.py |
1265 | +++ b/scripts/rosetta/pottery-generate-intltool.py |
1266 | @@ -7,7 +7,7 @@ |
1267 | |
1268 | from __future__ import absolute_import, print_function, unicode_literals |
1269 | |
1270 | -import _pythonpath |
1271 | +import _pythonpath # noqa: F401 |
1272 | |
1273 | import os.path |
1274 | |
1275 | diff --git a/scripts/rosetta/remove-translations-by.py b/scripts/rosetta/remove-translations-by.py |
1276 | index 7615e20..a01aefe 100755 |
1277 | --- a/scripts/rosetta/remove-translations-by.py |
1278 | +++ b/scripts/rosetta/remove-translations-by.py |
1279 | @@ -5,7 +5,7 @@ |
1280 | |
1281 | __metaclass__ = type |
1282 | |
1283 | -import _pythonpath |
1284 | +import _pythonpath # noqa: F401 |
1285 | |
1286 | from lp.translations.scripts.remove_translations import RemoveTranslations |
1287 | |
1288 | diff --git a/scripts/rosetta/reupload-translations.py b/scripts/rosetta/reupload-translations.py |
1289 | index 725f1a2..1187f7b 100755 |
1290 | --- a/scripts/rosetta/reupload-translations.py |
1291 | +++ b/scripts/rosetta/reupload-translations.py |
1292 | @@ -6,7 +6,7 @@ |
1293 | |
1294 | __metaclass__ = type |
1295 | |
1296 | -import _pythonpath |
1297 | +import _pythonpath # noqa: F401 |
1298 | |
1299 | from lp.translations.scripts.reupload_translations import ( |
1300 | ReuploadPackageTranslations, |
1301 | diff --git a/scripts/rosetta/upload-translations.py b/scripts/rosetta/upload-translations.py |
1302 | index 1910b13..ede5b1f 100755 |
1303 | --- a/scripts/rosetta/upload-translations.py |
1304 | +++ b/scripts/rosetta/upload-translations.py |
1305 | @@ -6,7 +6,7 @@ |
1306 | |
1307 | __metaclass__ = type |
1308 | |
1309 | -import _pythonpath |
1310 | +import _pythonpath # noqa: F401 |
1311 | |
1312 | from lp.translations.scripts.upload_translations import ( |
1313 | UploadPackageTranslations, |
1314 | diff --git a/scripts/rosetta/validate-translations-file.py b/scripts/rosetta/validate-translations-file.py |
1315 | index 72a91f4..e1edf9f 100755 |
1316 | --- a/scripts/rosetta/validate-translations-file.py |
1317 | +++ b/scripts/rosetta/validate-translations-file.py |
1318 | @@ -4,7 +4,7 @@ |
1319 | |
1320 | __metaclass__ = type |
1321 | |
1322 | -import _pythonpath |
1323 | +import _pythonpath # noqa: F401 |
1324 | |
1325 | import sys |
1326 | |
1327 | diff --git a/scripts/script-monitor-nagios.py b/scripts/script-monitor-nagios.py |
1328 | index 68e6307..2a97dee 100755 |
1329 | --- a/scripts/script-monitor-nagios.py |
1330 | +++ b/scripts/script-monitor-nagios.py |
1331 | @@ -23,7 +23,7 @@ from __future__ import absolute_import, print_function, unicode_literals |
1332 | __metaclass__ = type |
1333 | __all__ = ['check_script'] |
1334 | |
1335 | -import _pythonpath |
1336 | +import _pythonpath # noqa: F401 |
1337 | |
1338 | from datetime import ( |
1339 | datetime, |
1340 | diff --git a/scripts/script-monitor.py b/scripts/script-monitor.py |
1341 | index a7a3000..f6cb148 100755 |
1342 | --- a/scripts/script-monitor.py |
1343 | +++ b/scripts/script-monitor.py |
1344 | @@ -8,7 +8,7 @@ |
1345 | __metaclass__ = type |
1346 | __all__ = ['check_script'] |
1347 | |
1348 | -import _pythonpath |
1349 | +import _pythonpath # noqa: F401 |
1350 | |
1351 | from datetime import ( |
1352 | datetime, |
1353 | diff --git a/scripts/start-loggerhead.py b/scripts/start-loggerhead.py |
1354 | index 6bca4b1..c5746b7 100755 |
1355 | --- a/scripts/start-loggerhead.py |
1356 | +++ b/scripts/start-loggerhead.py |
1357 | @@ -5,7 +5,7 @@ |
1358 | |
1359 | from __future__ import absolute_import, print_function, unicode_literals |
1360 | |
1361 | -import _pythonpath |
1362 | +import _pythonpath # noqa: F401 |
1363 | |
1364 | from launchpad_loggerhead.wsgi import LoggerheadApplication |
1365 | |
1366 | diff --git a/scripts/stop-loggerhead.py b/scripts/stop-loggerhead.py |
1367 | index 9614045..32899c2 100755 |
1368 | --- a/scripts/stop-loggerhead.py |
1369 | +++ b/scripts/stop-loggerhead.py |
1370 | @@ -5,7 +5,7 @@ |
1371 | |
1372 | from __future__ import absolute_import, print_function, unicode_literals |
1373 | |
1374 | -import _pythonpath |
1375 | +import _pythonpath # noqa: F401 |
1376 | |
1377 | from optparse import OptionParser |
1378 | import sys |
1379 | diff --git a/scripts/suspend-bot-account.py b/scripts/suspend-bot-account.py |
1380 | index 7f1607f..cc48750 100755 |
1381 | --- a/scripts/suspend-bot-account.py |
1382 | +++ b/scripts/suspend-bot-account.py |
1383 | @@ -3,7 +3,7 @@ |
1384 | # Copyright 2018 Canonical Ltd. This software is licensed under the |
1385 | # GNU Affero General Public License version 3 (see the file LICENSE). |
1386 | |
1387 | -import _pythonpath |
1388 | +import _pythonpath # noqa: F401 |
1389 | |
1390 | from lp.registry.scripts.suspendbotaccount import SuspendBotAccountScript |
1391 | |
1392 | diff --git a/scripts/sync-branches.py b/scripts/sync-branches.py |
1393 | index b370bd1..a010599 100755 |
1394 | --- a/scripts/sync-branches.py |
1395 | +++ b/scripts/sync-branches.py |
1396 | @@ -3,7 +3,7 @@ |
1397 | |
1398 | """Sync branches from production to a staging environment.""" |
1399 | |
1400 | -import _pythonpath |
1401 | +import _pythonpath # noqa: F401 |
1402 | |
1403 | from lp.codehosting.scripts.sync_branches import SyncBranchesScript |
1404 | |
1405 | diff --git a/scripts/sync-signingkeys.py b/scripts/sync-signingkeys.py |
1406 | index 84310b0..0020d76 100755 |
1407 | --- a/scripts/sync-signingkeys.py |
1408 | +++ b/scripts/sync-signingkeys.py |
1409 | @@ -4,7 +4,7 @@ |
1410 | |
1411 | """Script to inject archive keys into signing service.""" |
1412 | |
1413 | -import _pythonpath |
1414 | +import _pythonpath # noqa: F401 |
1415 | |
1416 | from lp.archivepublisher.scripts.sync_signingkeys import SyncSigningKeysScript |
1417 | from lp.services.config import config |
1418 | diff --git a/scripts/update-stacked-on.py b/scripts/update-stacked-on.py |
1419 | index 2d4bbaf..1648ec9 100755 |
1420 | --- a/scripts/update-stacked-on.py |
1421 | +++ b/scripts/update-stacked-on.py |
1422 | @@ -18,7 +18,7 @@ renamed. |
1423 | |
1424 | __metaclass__ = type |
1425 | |
1426 | -import _pythonpath |
1427 | +import _pythonpath # noqa: F401 |
1428 | |
1429 | from collections import namedtuple |
1430 | import sys |
1431 | diff --git a/scripts/upgrade_all_branches.py b/scripts/upgrade_all_branches.py |
1432 | index 2e5fce1..9a846b3 100755 |
1433 | --- a/scripts/upgrade_all_branches.py |
1434 | +++ b/scripts/upgrade_all_branches.py |
1435 | @@ -2,7 +2,7 @@ |
1436 | |
1437 | __metaclass__ = type |
1438 | |
1439 | -import _pythonpath |
1440 | +import _pythonpath # noqa: F401 |
1441 | |
1442 | from lp.codehosting.bzrutils import server |
1443 | from lp.codehosting.upgrade import Upgrader |
1444 | diff --git a/scripts/upload2librarian.py b/scripts/upload2librarian.py |
1445 | index 27be0b8..2b8188c 100755 |
1446 | --- a/scripts/upload2librarian.py |
1447 | +++ b/scripts/upload2librarian.py |
1448 | @@ -5,7 +5,7 @@ |
1449 | |
1450 | """Simple tool to upload arbitrary files into Librarian.""" |
1451 | |
1452 | -import _pythonpath |
1453 | +import _pythonpath # noqa: F401 |
1454 | |
1455 | import logging |
1456 | import os |
1457 | diff --git a/scripts/wsgi-archive-auth.py b/scripts/wsgi-archive-auth.py |
1458 | index f447b6a..41791a5 100755 |
1459 | --- a/scripts/wsgi-archive-auth.py |
1460 | +++ b/scripts/wsgi-archive-auth.py |
1461 | @@ -34,7 +34,7 @@ top = os.path.dirname(scripts_dir) |
1462 | sys.modules.pop("site", None) |
1463 | sys.modules.pop("sitecustomize", None) |
1464 | |
1465 | -import _pythonpath |
1466 | +import _pythonpath # noqa: F401 |
1467 | |
1468 | from lp.soyuz.wsgi.archiveauth import check_password |
1469 | |
1470 | diff --git a/test_on_merge.py b/test_on_merge.py |
1471 | index b6e04af..a1cd0e2 100755 |
1472 | --- a/test_on_merge.py |
1473 | +++ b/test_on_merge.py |
1474 | @@ -7,7 +7,7 @@ |
1475 | |
1476 | from __future__ import absolute_import, print_function |
1477 | |
1478 | -import _pythonpath |
1479 | +import _pythonpath # noqa: F401 |
1480 | |
1481 | import errno |
1482 | import os |
1483 | diff --git a/utilities/audit-security-settings.py b/utilities/audit-security-settings.py |
1484 | index 8555cf1..8842249 100755 |
1485 | --- a/utilities/audit-security-settings.py |
1486 | +++ b/utilities/audit-security-settings.py |
1487 | @@ -14,7 +14,7 @@ from __future__ import absolute_import, print_function |
1488 | |
1489 | __metatype__ = type |
1490 | |
1491 | -import _pythonpath |
1492 | +import _pythonpath # noqa: F401 |
1493 | |
1494 | import os |
1495 | |
1496 | diff --git a/utilities/create-lp-wadl-and-apidoc.py b/utilities/create-lp-wadl-and-apidoc.py |
1497 | index e72ac3d..c5b3607 100755 |
1498 | --- a/utilities/create-lp-wadl-and-apidoc.py |
1499 | +++ b/utilities/create-lp-wadl-and-apidoc.py |
1500 | @@ -13,7 +13,7 @@ Example: |
1501 | |
1502 | from __future__ import absolute_import, print_function |
1503 | |
1504 | -import _pythonpath |
1505 | +import _pythonpath # noqa: F401 |
1506 | |
1507 | from multiprocessing import Process |
1508 | import optparse |
1509 | diff --git a/utilities/generate-external-bug-status-docs b/utilities/generate-external-bug-status-docs |
1510 | index 43e0263..54d8cf9 100755 |
1511 | --- a/utilities/generate-external-bug-status-docs |
1512 | +++ b/utilities/generate-external-bug-status-docs |
1513 | @@ -18,7 +18,7 @@ |
1514 | # this is very low because it is infrequently run, and typically only |
1515 | # by me, so I get to pick up the pieces. |
1516 | |
1517 | -import _pythonpath |
1518 | +import _pythonpath # noqa: F401 |
1519 | |
1520 | import codecs |
1521 | from datetime import datetime |
1522 | diff --git a/utilities/get-branch-info b/utilities/get-branch-info |
1523 | index abcd52c..1e832bc 100755 |
1524 | --- a/utilities/get-branch-info |
1525 | +++ b/utilities/get-branch-info |
1526 | @@ -10,7 +10,7 @@ Usage: get-branch-info <branch_url> |
1527 | |
1528 | from __future__ import absolute_import, print_function |
1529 | |
1530 | -import _pythonpath |
1531 | +import _pythonpath # noqa: F401 |
1532 | |
1533 | import sys |
1534 | |
1535 | diff --git a/utilities/js-deps b/utilities/js-deps |
1536 | index f1e1fd8..e8059f1 100755 |
1537 | --- a/utilities/js-deps |
1538 | +++ b/utilities/js-deps |
1539 | @@ -1,6 +1,6 @@ |
1540 | #!bin/py |
1541 | |
1542 | -import _pythonpath |
1543 | +import _pythonpath # noqa: F401 |
1544 | from convoy.meta import main |
1545 | |
1546 | main() |
1547 | diff --git a/utilities/list-pages b/utilities/list-pages |
1548 | index 7bce9d8..d249001 100755 |
1549 | --- a/utilities/list-pages |
1550 | +++ b/utilities/list-pages |
1551 | @@ -44,7 +44,7 @@ because our cheat objects don't match the app-encoded business logic. |
1552 | |
1553 | from __future__ import absolute_import, print_function |
1554 | |
1555 | -import _pythonpath |
1556 | +import _pythonpath # noqa: F401 |
1557 | |
1558 | from inspect import getmro |
1559 | import os |
1560 | diff --git a/utilities/lsconf.py b/utilities/lsconf.py |
1561 | index 7d7a62a..f4301bf 100755 |
1562 | --- a/utilities/lsconf.py |
1563 | +++ b/utilities/lsconf.py |
1564 | @@ -10,7 +10,7 @@ from __future__ import absolute_import, print_function |
1565 | __metatype__ = type |
1566 | |
1567 | # Scripts may have relative imports. |
1568 | -import _pythonpath |
1569 | +import _pythonpath # noqa: F401 |
1570 | |
1571 | from operator import attrgetter |
1572 | from optparse import OptionParser |
1573 | diff --git a/utilities/make-dummy-hosted-branches b/utilities/make-dummy-hosted-branches |
1574 | index 2b777a0..eb930db 100755 |
1575 | --- a/utilities/make-dummy-hosted-branches |
1576 | +++ b/utilities/make-dummy-hosted-branches |
1577 | @@ -17,7 +17,7 @@ database. |
1578 | |
1579 | from __future__ import absolute_import, print_function |
1580 | |
1581 | -import _pythonpath |
1582 | +import _pythonpath # noqa: F401 |
1583 | |
1584 | import os |
1585 | import shutil |
1586 | diff --git a/utilities/make-lp-user b/utilities/make-lp-user |
1587 | index c4bebf5..eb6d415 100755 |
1588 | --- a/utilities/make-lp-user |
1589 | +++ b/utilities/make-lp-user |
1590 | @@ -31,7 +31,7 @@ production environments. |
1591 | |
1592 | from __future__ import absolute_import, print_function |
1593 | |
1594 | -import _pythonpath |
1595 | +import _pythonpath # noqa: F401 |
1596 | |
1597 | from optparse import OptionParser |
1598 | import os |
1599 | diff --git a/utilities/paste b/utilities/paste |
1600 | index 135b5a1..f75cc79 100755 |
1601 | --- a/utilities/paste |
1602 | +++ b/utilities/paste |
1603 | @@ -5,7 +5,7 @@ |
1604 | |
1605 | from __future__ import absolute_import, print_function |
1606 | |
1607 | -import _pythonpath |
1608 | +import _pythonpath # noqa: F401 |
1609 | |
1610 | import base64 |
1611 | from optparse import OptionParser |
1612 | diff --git a/utilities/pgkillactive.py b/utilities/pgkillactive.py |
1613 | index 89ae8d2..85bd637 100755 |
1614 | --- a/utilities/pgkillactive.py |
1615 | +++ b/utilities/pgkillactive.py |
1616 | @@ -11,7 +11,7 @@ from __future__ import absolute_import, print_function |
1617 | __metaclass__ = type |
1618 | __all__ = [] |
1619 | |
1620 | -import _pythonpath |
1621 | +import _pythonpath # noqa: F401 |
1622 | |
1623 | from optparse import OptionParser |
1624 | import os |
1625 | diff --git a/utilities/pgkillidle.py b/utilities/pgkillidle.py |
1626 | index 2a1f145..c0c81e9 100755 |
1627 | --- a/utilities/pgkillidle.py |
1628 | +++ b/utilities/pgkillidle.py |
1629 | @@ -11,7 +11,7 @@ from __future__ import absolute_import, print_function |
1630 | __metaclass__ = type |
1631 | __all__ = [] |
1632 | |
1633 | -import _pythonpath |
1634 | +import _pythonpath # noqa: F401 |
1635 | |
1636 | from optparse import OptionParser |
1637 | import os |
1638 | diff --git a/utilities/pgmassacre.py b/utilities/pgmassacre.py |
1639 | index 1dd1e7b..b05a3d9 100755 |
1640 | --- a/utilities/pgmassacre.py |
1641 | +++ b/utilities/pgmassacre.py |
1642 | @@ -15,7 +15,7 @@ Cut off access, slaughter connections and burn the database to the ground |
1643 | |
1644 | from __future__ import absolute_import, print_function |
1645 | |
1646 | -import _pythonpath |
1647 | +import _pythonpath # noqa: F401 |
1648 | |
1649 | from optparse import OptionParser |
1650 | import sys |
1651 | diff --git a/utilities/report-database-stats.py b/utilities/report-database-stats.py |
1652 | index 8e236d8..9353e86 100755 |
1653 | --- a/utilities/report-database-stats.py |
1654 | +++ b/utilities/report-database-stats.py |
1655 | @@ -8,7 +8,7 @@ from __future__ import absolute_import, print_function |
1656 | |
1657 | __metaclass__ = type |
1658 | |
1659 | -import _pythonpath |
1660 | +import _pythonpath # noqa: F401 |
1661 | |
1662 | from datetime import datetime |
1663 | from operator import attrgetter |
1664 | diff --git a/utilities/smoke-test-librarian.py b/utilities/smoke-test-librarian.py |
1665 | index ba82385..0581e00 100755 |
1666 | --- a/utilities/smoke-test-librarian.py |
1667 | +++ b/utilities/smoke-test-librarian.py |
1668 | @@ -6,7 +6,7 @@ |
1669 | """Perform simple librarian operations to verify the current configuration. |
1670 | """ |
1671 | |
1672 | -import _pythonpath |
1673 | +import _pythonpath # noqa: F401 |
1674 | |
1675 | import sys |
1676 | |
1677 | diff --git a/utilities/soyuz-sampledata-setup.py b/utilities/soyuz-sampledata-setup.py |
1678 | index 9a1edba..9edad0e 100755 |
1679 | --- a/utilities/soyuz-sampledata-setup.py |
1680 | +++ b/utilities/soyuz-sampledata-setup.py |
1681 | @@ -21,7 +21,7 @@ from __future__ import absolute_import, print_function |
1682 | |
1683 | __metaclass__ = type |
1684 | |
1685 | -import _pythonpath |
1686 | +import _pythonpath # noqa: F401 |
1687 | |
1688 | import os |
1689 | import re |
Self-approving: this is trivial and mechanical, so probably not worth any review bandwidth.