1 |
commit: d695d866e4e7b2ab79264508f1520f89a5585e04 |
2 |
Author: Aaron Bauman <bman <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Aug 7 01:12:15 2020 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Aug 7 02:53:12 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=d695d866 |
7 |
|
8 |
*: drop all import __future__ statements |
9 |
|
10 |
* We only support Py3 now. |
11 |
|
12 |
Signed-off-by: Aaron Bauman <bman <AT> gentoo.org> |
13 |
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org> |
14 |
|
15 |
bin/archive-conf | 4 +--- |
16 |
bin/check-implicit-pointer-usage.py | 2 -- |
17 |
bin/clean_locks | 4 +--- |
18 |
bin/dispatch-conf | 4 +--- |
19 |
bin/dohtml.py | 4 +--- |
20 |
bin/doins.py | 2 -- |
21 |
bin/ebuild | 4 +--- |
22 |
bin/egencache | 4 ++-- |
23 |
bin/emaint | 4 +--- |
24 |
bin/emerge | 4 +--- |
25 |
bin/env-update | 4 +--- |
26 |
bin/fixpackages | 4 +--- |
27 |
bin/glsa-check | 4 +--- |
28 |
bin/portageq | 4 +--- |
29 |
bin/quickpkg | 4 +--- |
30 |
bin/regenworld | 4 +--- |
31 |
lib/_emerge/Scheduler.py | 2 -- |
32 |
lib/_emerge/UserQuery.py | 2 -- |
33 |
lib/_emerge/actions.py | 2 -- |
34 |
lib/_emerge/chk_updated_cfg_files.py | 2 -- |
35 |
lib/_emerge/countdown.py | 4 +--- |
36 |
lib/_emerge/depgraph.py | 4 +--- |
37 |
lib/_emerge/help.py | 4 +--- |
38 |
lib/_emerge/main.py | 2 -- |
39 |
lib/_emerge/post_emerge.py | 4 +--- |
40 |
lib/_emerge/resolver/circular_dependency.py | 8 +++---- |
41 |
lib/_emerge/resolver/package_tracker.py | 4 +--- |
42 |
lib/_emerge/resolver/slot_collision.py | 3 +-- |
43 |
lib/_emerge/unmerge.py | 2 -- |
44 |
lib/portage/_emirrordist/FetchTask.py | 2 -- |
45 |
lib/portage/_global_updates.py | 4 +--- |
46 |
lib/portage/_sets/__init__.py | 2 -- |
47 |
lib/portage/_sets/dbapi.py | 2 -- |
48 |
lib/portage/_sets/libs.py | 4 +--- |
49 |
lib/portage/cache/anydbm.py | 5 ++-- |
50 |
lib/portage/cache/sqlite.py | 3 +-- |
51 |
lib/portage/cvstree.py | 2 -- |
52 |
lib/portage/dbapi/vartree.py | 2 -- |
53 |
lib/portage/dispatch_conf.py | 5 +--- |
54 |
lib/portage/elog/mod_echo.py | 4 +--- |
55 |
lib/portage/emaint/main.py | 4 +--- |
56 |
lib/portage/glsa.py | 27 +++++++++++----------- |
57 |
lib/portage/localization.py | 4 +--- |
58 |
lib/portage/metadata.py | 4 +--- |
59 |
lib/portage/module.py | 5 +--- |
60 |
lib/portage/news.py | 2 -- |
61 |
lib/portage/output.py | 2 -- |
62 |
lib/portage/package/ebuild/fetch.py | 2 -- |
63 |
lib/portage/sync/controller.py | 3 --- |
64 |
lib/portage/sync/old_tree_timestamp.py | 4 +--- |
65 |
lib/portage/tests/__init__.py | 4 +--- |
66 |
lib/portage/tests/util/test_xattr.py | 4 +--- |
67 |
.../util/_dyn_libs/display_preserved_libs.py | 6 ++--- |
68 |
lib/portage/util/_eventloop/EventLoop.py | 5 +--- |
69 |
lib/portage/util/_eventloop/PollSelectAdapter.py | 5 ++-- |
70 |
lib/portage/util/_xattr.py | 4 +--- |
71 |
lib/portage/util/locale.py | 4 ++-- |
72 |
lib/portage/util/movefile.py | 2 -- |
73 |
repoman/bin/repoman | 5 ++-- |
74 |
repoman/lib/repoman/actions.py | 4 +--- |
75 |
repoman/lib/repoman/errors.py | 2 -- |
76 |
repoman/lib/repoman/gpg.py | 2 -- |
77 |
repoman/lib/repoman/main.py | 5 ++-- |
78 |
repoman/lib/repoman/metadata.py | 2 -- |
79 |
repoman/lib/repoman/modules/commit/repochecks.py | 2 -- |
80 |
repoman/lib/repoman/modules/scan/ebuild/ebuild.py | 3 +-- |
81 |
repoman/lib/repoman/modules/vcs/settings.py | 3 +-- |
82 |
repoman/lib/repoman/modules/vcs/vcs.py | 3 +-- |
83 |
repoman/lib/repoman/profile.py | 2 -- |
84 |
repoman/lib/repoman/scanner.py | 6 ++--- |
85 |
repoman/lib/repoman/tests/__init__.py | 4 +--- |
86 |
repoman/lib/repoman/utilities.py | 4 +--- |
87 |
repoman/runtests | 4 +--- |
88 |
repoman/setup.py | 4 +--- |
89 |
runtests | 4 +--- |
90 |
setup.py | 2 -- |
91 |
76 files changed, 76 insertions(+), 214 deletions(-) |
92 |
|
93 |
diff --git a/bin/archive-conf b/bin/archive-conf |
94 |
index 8341ffe73..bfc54a629 100755 |
95 |
--- a/bin/archive-conf |
96 |
+++ b/bin/archive-conf |
97 |
@@ -1,5 +1,5 @@ |
98 |
#!/usr/bin/python -b |
99 |
-# Copyright 1999-2014 Gentoo Foundation |
100 |
+# Copyright 1999-2020 Gentoo Authors |
101 |
# Distributed under the terms of the GNU General Public License v2 |
102 |
|
103 |
# |
104 |
@@ -9,8 +9,6 @@ |
105 |
# Jeremy Wohl's dispatch-conf script and the portage chkcontents script. |
106 |
# |
107 |
|
108 |
-from __future__ import print_function |
109 |
- |
110 |
import sys |
111 |
|
112 |
from os import path as osp |
113 |
|
114 |
diff --git a/bin/check-implicit-pointer-usage.py b/bin/check-implicit-pointer-usage.py |
115 |
index 868e4b3c8..3914e038d 100755 |
116 |
--- a/bin/check-implicit-pointer-usage.py |
117 |
+++ b/bin/check-implicit-pointer-usage.py |
118 |
@@ -14,8 +14,6 @@ |
119 |
# crashes. |
120 |
# |
121 |
|
122 |
-from __future__ import print_function |
123 |
- |
124 |
import re |
125 |
import sys |
126 |
|
127 |
|
128 |
diff --git a/bin/clean_locks b/bin/clean_locks |
129 |
index 94ba4c606..d1f296065 100755 |
130 |
--- a/bin/clean_locks |
131 |
+++ b/bin/clean_locks |
132 |
@@ -1,9 +1,7 @@ |
133 |
#!/usr/bin/python -b |
134 |
-# Copyright 1999-2014 Gentoo Foundation |
135 |
+# Copyright 1999-2020 Gentoo Authors |
136 |
# Distributed under the terms of the GNU General Public License v2 |
137 |
|
138 |
-from __future__ import print_function |
139 |
- |
140 |
import sys, errno |
141 |
from os import path as osp |
142 |
if osp.isfile(osp.join(osp.dirname(osp.dirname(osp.realpath(__file__))), ".portage_not_installed")): |
143 |
|
144 |
diff --git a/bin/dispatch-conf b/bin/dispatch-conf |
145 |
index 1759b89b8..fa047244a 100755 |
146 |
--- a/bin/dispatch-conf |
147 |
+++ b/bin/dispatch-conf |
148 |
@@ -1,5 +1,5 @@ |
149 |
#!/usr/bin/python -b |
150 |
-# Copyright 1999-2019 Gentoo Authors |
151 |
+# Copyright 1999-2020 Gentoo Authors |
152 |
# Distributed under the terms of the GNU General Public License v2 |
153 |
|
154 |
# |
155 |
@@ -11,8 +11,6 @@ |
156 |
# dialog menus |
157 |
# |
158 |
|
159 |
-from __future__ import print_function |
160 |
- |
161 |
import atexit |
162 |
import io |
163 |
import re |
164 |
|
165 |
diff --git a/bin/dohtml.py b/bin/dohtml.py |
166 |
index 67c5eb9d1..6a1ed10fe 100755 |
167 |
--- a/bin/dohtml.py |
168 |
+++ b/bin/dohtml.py |
169 |
@@ -1,5 +1,5 @@ |
170 |
#!/usr/bin/python -b |
171 |
-# Copyright 1999-2014 Gentoo Foundation |
172 |
+# Copyright 1999-2020 Gentoo Authors |
173 |
# Distributed under the terms of the GNU General Public License v2 |
174 |
|
175 |
# |
176 |
@@ -28,8 +28,6 @@ |
177 |
# - will do as 'dohtml -r', but ignore directories named CVS, SCCS, RCS |
178 |
# |
179 |
|
180 |
-from __future__ import print_function |
181 |
- |
182 |
import os as _os |
183 |
import sys |
184 |
|
185 |
|
186 |
diff --git a/bin/doins.py b/bin/doins.py |
187 |
index 5bbf92635..574340132 100644 |
188 |
--- a/bin/doins.py |
189 |
+++ b/bin/doins.py |
190 |
@@ -11,8 +11,6 @@ |
191 |
This script is designed to be executed by ebuild-helpers/doins. |
192 |
""" |
193 |
|
194 |
-from __future__ import print_function |
195 |
- |
196 |
import argparse |
197 |
import errno |
198 |
import grp |
199 |
|
200 |
diff --git a/bin/ebuild b/bin/ebuild |
201 |
index ea02fa95a..09f7f839b 100755 |
202 |
--- a/bin/ebuild |
203 |
+++ b/bin/ebuild |
204 |
@@ -1,9 +1,7 @@ |
205 |
#!/usr/bin/python -b |
206 |
-# Copyright 1999-2019 Gentoo Authors |
207 |
+# Copyright 1999-2020 Gentoo Authors |
208 |
# Distributed under the terms of the GNU General Public License v2 |
209 |
|
210 |
-from __future__ import print_function |
211 |
- |
212 |
import argparse |
213 |
import platform |
214 |
import signal |
215 |
|
216 |
diff --git a/bin/egencache b/bin/egencache |
217 |
index e3d7cbfc3..264c600fe 100755 |
218 |
--- a/bin/egencache |
219 |
+++ b/bin/egencache |
220 |
@@ -1,15 +1,15 @@ |
221 |
#!/usr/bin/python -b |
222 |
-# Copyright 2009-2015 Gentoo Foundation |
223 |
+# Copyright 2009-2020 Gentoo Authors |
224 |
# Distributed under the terms of the GNU General Public License v2 |
225 |
|
226 |
# unicode_literals for compat with TextIOWrapper in Python 2 |
227 |
-from __future__ import print_function |
228 |
|
229 |
import argparse |
230 |
import platform |
231 |
import signal |
232 |
import stat |
233 |
import sys |
234 |
+ |
235 |
# This block ensures that ^C interrupts are handled quietly. |
236 |
try: |
237 |
|
238 |
|
239 |
diff --git a/bin/emaint b/bin/emaint |
240 |
index df904f7c0..5cb667f28 100755 |
241 |
--- a/bin/emaint |
242 |
+++ b/bin/emaint |
243 |
@@ -1,12 +1,10 @@ |
244 |
#!/usr/bin/python -b |
245 |
-# Copyright 2005-2014 Gentoo Foundation |
246 |
+# Copyright 2005-2020 Gentoo Authors |
247 |
# Distributed under the terms of the GNU General Public License v2 |
248 |
|
249 |
"""System health checks and maintenance utilities. |
250 |
""" |
251 |
|
252 |
-from __future__ import print_function |
253 |
- |
254 |
import sys |
255 |
import errno |
256 |
# This block ensures that ^C interrupts are handled quietly. |
257 |
|
258 |
diff --git a/bin/emerge b/bin/emerge |
259 |
index e372f5e9e..f0a2b8429 100755 |
260 |
--- a/bin/emerge |
261 |
+++ b/bin/emerge |
262 |
@@ -1,9 +1,7 @@ |
263 |
#!/usr/bin/python -b |
264 |
-# Copyright 2006-2014 Gentoo Foundation |
265 |
+# Copyright 2006-2020 Gentoo Authors |
266 |
# Distributed under the terms of the GNU General Public License v2 |
267 |
|
268 |
-from __future__ import print_function |
269 |
- |
270 |
import platform |
271 |
import signal |
272 |
import sys |
273 |
|
274 |
diff --git a/bin/env-update b/bin/env-update |
275 |
index 2256b37f5..6571b0011 100755 |
276 |
--- a/bin/env-update |
277 |
+++ b/bin/env-update |
278 |
@@ -1,9 +1,7 @@ |
279 |
#!/usr/bin/python -b |
280 |
-# Copyright 1999-2014 Gentoo Foundation |
281 |
+# Copyright 1999-2020 Gentoo Authors |
282 |
# Distributed under the terms of the GNU General Public License v2 |
283 |
|
284 |
-from __future__ import print_function |
285 |
- |
286 |
import errno |
287 |
import sys |
288 |
|
289 |
|
290 |
diff --git a/bin/fixpackages b/bin/fixpackages |
291 |
index a291e013d..e56d26ec1 100755 |
292 |
--- a/bin/fixpackages |
293 |
+++ b/bin/fixpackages |
294 |
@@ -1,9 +1,7 @@ |
295 |
#!/usr/bin/python -b |
296 |
-# Copyright 1999-2014 Gentoo Foundation |
297 |
+# Copyright 1999-2020 Gentoo Authors |
298 |
# Distributed under the terms of the GNU General Public License v2 |
299 |
|
300 |
-from __future__ import print_function |
301 |
- |
302 |
import argparse |
303 |
import os |
304 |
import sys |
305 |
|
306 |
diff --git a/bin/glsa-check b/bin/glsa-check |
307 |
index 468436353..8200f75b6 100755 |
308 |
--- a/bin/glsa-check |
309 |
+++ b/bin/glsa-check |
310 |
@@ -1,9 +1,7 @@ |
311 |
#!/usr/bin/python -b |
312 |
-# Copyright 1999-2019 Gentoo Authors |
313 |
+# Copyright 1999-2020 Gentoo Authors |
314 |
# Distributed under the terms of the GNU General Public License v2 |
315 |
|
316 |
-from __future__ import print_function |
317 |
- |
318 |
import argparse |
319 |
import re |
320 |
import sys |
321 |
|
322 |
diff --git a/bin/portageq b/bin/portageq |
323 |
index 9fe5d68c1..dbcd9f62d 100755 |
324 |
--- a/bin/portageq |
325 |
+++ b/bin/portageq |
326 |
@@ -1,9 +1,7 @@ |
327 |
#!/usr/bin/python -b |
328 |
-# Copyright 1999-2018 Gentoo Foundation |
329 |
+# Copyright 1999-2020 Gentoo Authors |
330 |
# Distributed under the terms of the GNU General Public License v2 |
331 |
|
332 |
-from __future__ import print_function |
333 |
- |
334 |
import argparse |
335 |
import signal |
336 |
import sys |
337 |
|
338 |
diff --git a/bin/quickpkg b/bin/quickpkg |
339 |
index c4ff198b8..be7d1d7af 100755 |
340 |
--- a/bin/quickpkg |
341 |
+++ b/bin/quickpkg |
342 |
@@ -1,9 +1,7 @@ |
343 |
#!/usr/bin/python -b |
344 |
-# Copyright 1999-2014 Gentoo Foundation |
345 |
+# Copyright 1999-2020 Gentoo Authors |
346 |
# Distributed under the terms of the GNU General Public License v2 |
347 |
|
348 |
-from __future__ import division, print_function |
349 |
- |
350 |
import argparse |
351 |
import errno |
352 |
import math |
353 |
|
354 |
diff --git a/bin/regenworld b/bin/regenworld |
355 |
index bedc58bda..9f33502c6 100755 |
356 |
--- a/bin/regenworld |
357 |
+++ b/bin/regenworld |
358 |
@@ -1,9 +1,7 @@ |
359 |
#!/usr/bin/python -b |
360 |
-# Copyright 1999-2014 Gentoo Foundation |
361 |
+# Copyright 1999-2020 Gentoo Authors |
362 |
# Distributed under the terms of the GNU General Public License v2 |
363 |
|
364 |
-from __future__ import print_function |
365 |
- |
366 |
import sys |
367 |
from os import path as osp |
368 |
if osp.isfile(osp.join(osp.dirname(osp.dirname(osp.realpath(__file__))), ".portage_not_installed")): |
369 |
|
370 |
diff --git a/lib/_emerge/Scheduler.py b/lib/_emerge/Scheduler.py |
371 |
index 761ba31e0..2427d953c 100644 |
372 |
--- a/lib/_emerge/Scheduler.py |
373 |
+++ b/lib/_emerge/Scheduler.py |
374 |
@@ -1,8 +1,6 @@ |
375 |
# Copyright 1999-2020 Gentoo Authors |
376 |
# Distributed under the terms of the GNU General Public License v2 |
377 |
|
378 |
-from __future__ import division, print_function |
379 |
- |
380 |
from collections import deque |
381 |
import gc |
382 |
import gzip |
383 |
|
384 |
diff --git a/lib/_emerge/UserQuery.py b/lib/_emerge/UserQuery.py |
385 |
index d5273e4ee..0469432fc 100644 |
386 |
--- a/lib/_emerge/UserQuery.py |
387 |
+++ b/lib/_emerge/UserQuery.py |
388 |
@@ -1,8 +1,6 @@ |
389 |
# Copyright 1999-2020 Gentoo Authors |
390 |
# Distributed under the terms of the GNU General Public License v2 |
391 |
|
392 |
-from __future__ import print_function |
393 |
- |
394 |
import signal |
395 |
import sys |
396 |
|
397 |
|
398 |
diff --git a/lib/_emerge/actions.py b/lib/_emerge/actions.py |
399 |
index 7d2d9b315..d259206ad 100644 |
400 |
--- a/lib/_emerge/actions.py |
401 |
+++ b/lib/_emerge/actions.py |
402 |
@@ -1,8 +1,6 @@ |
403 |
# Copyright 1999-2020 Gentoo Authors |
404 |
# Distributed under the terms of the GNU General Public License v2 |
405 |
|
406 |
-from __future__ import division, print_function |
407 |
- |
408 |
import collections |
409 |
import logging |
410 |
import operator |
411 |
|
412 |
diff --git a/lib/_emerge/chk_updated_cfg_files.py b/lib/_emerge/chk_updated_cfg_files.py |
413 |
index e5e090767..f7f7ab868 100644 |
414 |
--- a/lib/_emerge/chk_updated_cfg_files.py |
415 |
+++ b/lib/_emerge/chk_updated_cfg_files.py |
416 |
@@ -1,8 +1,6 @@ |
417 |
# Copyright 1999-2012, 2016 Gentoo Foundation |
418 |
# Distributed under the terms of the GNU General Public License v2 |
419 |
|
420 |
-from __future__ import print_function |
421 |
- |
422 |
import logging |
423 |
|
424 |
import portage |
425 |
|
426 |
diff --git a/lib/_emerge/countdown.py b/lib/_emerge/countdown.py |
427 |
index 62e3c8dea..e9e774f9a 100644 |
428 |
--- a/lib/_emerge/countdown.py |
429 |
+++ b/lib/_emerge/countdown.py |
430 |
@@ -1,8 +1,6 @@ |
431 |
-# Copyright 1999-2013 Gentoo Foundation |
432 |
+# Copyright 1999-2020 Gentoo Authors |
433 |
# Distributed under the terms of the GNU General Public License v2 |
434 |
|
435 |
-from __future__ import print_function |
436 |
- |
437 |
import sys |
438 |
import time |
439 |
|
440 |
|
441 |
diff --git a/lib/_emerge/depgraph.py b/lib/_emerge/depgraph.py |
442 |
index 0810cdaf1..e071be8df 100644 |
443 |
--- a/lib/_emerge/depgraph.py |
444 |
+++ b/lib/_emerge/depgraph.py |
445 |
@@ -1,9 +1,6 @@ |
446 |
# Copyright 1999-2020 Gentoo Authors |
447 |
# Distributed under the terms of the GNU General Public License v2 |
448 |
|
449 |
-from __future__ import division, print_function |
450 |
- |
451 |
-import collections |
452 |
import errno |
453 |
import functools |
454 |
import io |
455 |
@@ -11,6 +8,7 @@ import logging |
456 |
import stat |
457 |
import textwrap |
458 |
import warnings |
459 |
+import collections |
460 |
from collections import deque, OrderedDict |
461 |
from itertools import chain |
462 |
|
463 |
|
464 |
diff --git a/lib/_emerge/help.py b/lib/_emerge/help.py |
465 |
index de3d7b593..15e1941ca 100644 |
466 |
--- a/lib/_emerge/help.py |
467 |
+++ b/lib/_emerge/help.py |
468 |
@@ -1,8 +1,6 @@ |
469 |
-# Copyright 1999-2014 Gentoo Foundation |
470 |
+# Copyright 1999-2020 Gentoo Authors |
471 |
# Distributed under the terms of the GNU General Public License v2 |
472 |
|
473 |
-from __future__ import print_function |
474 |
- |
475 |
from portage.output import bold, turquoise, green |
476 |
|
477 |
def emerge_help(): |
478 |
|
479 |
diff --git a/lib/_emerge/main.py b/lib/_emerge/main.py |
480 |
index 12323b17e..f4c7e2715 100644 |
481 |
--- a/lib/_emerge/main.py |
482 |
+++ b/lib/_emerge/main.py |
483 |
@@ -1,8 +1,6 @@ |
484 |
# Copyright 1999-2020 Gentoo Authors |
485 |
# Distributed under the terms of the GNU General Public License v2 |
486 |
|
487 |
-from __future__ import print_function |
488 |
- |
489 |
import argparse |
490 |
import locale |
491 |
import platform |
492 |
|
493 |
diff --git a/lib/_emerge/post_emerge.py b/lib/_emerge/post_emerge.py |
494 |
index e971cf40d..0c4df0d32 100644 |
495 |
--- a/lib/_emerge/post_emerge.py |
496 |
+++ b/lib/_emerge/post_emerge.py |
497 |
@@ -1,8 +1,6 @@ |
498 |
-# Copyright 1999-2012 Gentoo Foundation |
499 |
+# Copyright 1999-2020 Gentoo Authors |
500 |
# Distributed under the terms of the GNU General Public License v2 |
501 |
|
502 |
-from __future__ import print_function |
503 |
- |
504 |
import logging |
505 |
import textwrap |
506 |
|
507 |
|
508 |
diff --git a/lib/_emerge/resolver/circular_dependency.py b/lib/_emerge/resolver/circular_dependency.py |
509 |
index 109f22b9c..7d71e6c88 100644 |
510 |
--- a/lib/_emerge/resolver/circular_dependency.py |
511 |
+++ b/lib/_emerge/resolver/circular_dependency.py |
512 |
@@ -1,17 +1,17 @@ |
513 |
# Copyright 2010-2020 Gentoo Authors |
514 |
# Distributed under the terms of the GNU General Public License v2 |
515 |
|
516 |
-from __future__ import print_function |
517 |
+import logging |
518 |
+ |
519 |
+from _emerge.DepPrioritySatisfiedRange import DepPrioritySatisfiedRange |
520 |
+from _emerge.Package import Package |
521 |
|
522 |
from itertools import chain, product |
523 |
-import logging |
524 |
|
525 |
from portage.dep import use_reduce, extract_affecting_use, check_required_use, get_required_use_flags |
526 |
from portage.exception import InvalidDependString |
527 |
from portage.output import colorize |
528 |
from portage.util import writemsg_level |
529 |
-from _emerge.DepPrioritySatisfiedRange import DepPrioritySatisfiedRange |
530 |
-from _emerge.Package import Package |
531 |
|
532 |
class circular_dependency_handler: |
533 |
|
534 |
|
535 |
diff --git a/lib/_emerge/resolver/package_tracker.py b/lib/_emerge/resolver/package_tracker.py |
536 |
index 2afa7923b..2cb648538 100644 |
537 |
--- a/lib/_emerge/resolver/package_tracker.py |
538 |
+++ b/lib/_emerge/resolver/package_tracker.py |
539 |
@@ -1,8 +1,6 @@ |
540 |
-# Copyright 2014 Gentoo Foundation |
541 |
+# Copyright 2014-2020 Gentoo Authors |
542 |
# Distributed under the terms of the GNU General Public License v2 |
543 |
|
544 |
-from __future__ import print_function |
545 |
- |
546 |
import bisect |
547 |
import collections |
548 |
|
549 |
|
550 |
diff --git a/lib/_emerge/resolver/slot_collision.py b/lib/_emerge/resolver/slot_collision.py |
551 |
index df3816717..4fa07ff59 100644 |
552 |
--- a/lib/_emerge/resolver/slot_collision.py |
553 |
+++ b/lib/_emerge/resolver/slot_collision.py |
554 |
@@ -1,12 +1,11 @@ |
555 |
# Copyright 2010-2020 Gentoo Authors |
556 |
# Distributed under the terms of the GNU General Public License v2 |
557 |
|
558 |
-from __future__ import print_function |
559 |
- |
560 |
from _emerge.AtomArg import AtomArg |
561 |
from _emerge.Package import Package |
562 |
from _emerge.PackageArg import PackageArg |
563 |
from _emerge.UseFlagDisplay import pkg_use_display |
564 |
+ |
565 |
from portage.dep import check_required_use |
566 |
from portage.output import colorize |
567 |
from portage._sets.base import InternalPackageSet |
568 |
|
569 |
diff --git a/lib/_emerge/unmerge.py b/lib/_emerge/unmerge.py |
570 |
index 548edaf0c..e8b7c9aaa 100644 |
571 |
--- a/lib/_emerge/unmerge.py |
572 |
+++ b/lib/_emerge/unmerge.py |
573 |
@@ -1,8 +1,6 @@ |
574 |
# Copyright 1999-2020 Gentoo Authors |
575 |
# Distributed under the terms of the GNU General Public License v2 |
576 |
|
577 |
-from __future__ import print_function |
578 |
- |
579 |
import logging |
580 |
import signal |
581 |
import sys |
582 |
|
583 |
diff --git a/lib/portage/_emirrordist/FetchTask.py b/lib/portage/_emirrordist/FetchTask.py |
584 |
index 334da7420..457ca2ac6 100644 |
585 |
--- a/lib/portage/_emirrordist/FetchTask.py |
586 |
+++ b/lib/portage/_emirrordist/FetchTask.py |
587 |
@@ -1,8 +1,6 @@ |
588 |
# Copyright 2013-2020 Gentoo Authors |
589 |
# Distributed under the terms of the GNU General Public License v2 |
590 |
|
591 |
-from __future__ import division |
592 |
- |
593 |
import collections |
594 |
import errno |
595 |
import logging |
596 |
|
597 |
diff --git a/lib/portage/_global_updates.py b/lib/portage/_global_updates.py |
598 |
index 730ade592..855551304 100644 |
599 |
--- a/lib/portage/_global_updates.py |
600 |
+++ b/lib/portage/_global_updates.py |
601 |
@@ -1,8 +1,6 @@ |
602 |
-# Copyright 2010-2014 Gentoo Foundation |
603 |
+# Copyright 2010-2020 Gentoo Authors |
604 |
# Distributed under the terms of the GNU General Public License v2 |
605 |
|
606 |
-from __future__ import print_function |
607 |
- |
608 |
import stat |
609 |
|
610 |
from portage import best, os |
611 |
|
612 |
diff --git a/lib/portage/_sets/__init__.py b/lib/portage/_sets/__init__.py |
613 |
index ea0a8b9b4..efa6314ba 100644 |
614 |
--- a/lib/portage/_sets/__init__.py |
615 |
+++ b/lib/portage/_sets/__init__.py |
616 |
@@ -1,8 +1,6 @@ |
617 |
# Copyright 2007-2020 Gentoo Authors |
618 |
# Distributed under the terms of the GNU General Public License v2 |
619 |
|
620 |
-from __future__ import print_function |
621 |
- |
622 |
__all__ = ["SETPREFIX", "get_boolean", "SetConfigError", |
623 |
"SetConfig", "load_default_config"] |
624 |
|
625 |
|
626 |
diff --git a/lib/portage/_sets/dbapi.py b/lib/portage/_sets/dbapi.py |
627 |
index 288e4e75b..d73aedb8f 100644 |
628 |
--- a/lib/portage/_sets/dbapi.py |
629 |
+++ b/lib/portage/_sets/dbapi.py |
630 |
@@ -1,8 +1,6 @@ |
631 |
# Copyright 2007-2020 Gentoo Authors |
632 |
# Distributed under the terms of the GNU General Public License v2 |
633 |
|
634 |
-from __future__ import division |
635 |
- |
636 |
import glob |
637 |
import re |
638 |
import time |
639 |
|
640 |
diff --git a/lib/portage/_sets/libs.py b/lib/portage/_sets/libs.py |
641 |
index 022e076f5..90efafe79 100644 |
642 |
--- a/lib/portage/_sets/libs.py |
643 |
+++ b/lib/portage/_sets/libs.py |
644 |
@@ -1,8 +1,6 @@ |
645 |
-# Copyright 2007-2013 Gentoo Foundation |
646 |
+# Copyright 2007-2020 Gentoo Authors |
647 |
# Distributed under the terms of the GNU General Public License v2 |
648 |
|
649 |
-from __future__ import print_function |
650 |
- |
651 |
from portage.exception import InvalidData |
652 |
from portage.localization import _ |
653 |
from portage._sets.base import PackageSet |
654 |
|
655 |
diff --git a/lib/portage/cache/anydbm.py b/lib/portage/cache/anydbm.py |
656 |
index 4cdf264e2..70951f824 100644 |
657 |
--- a/lib/portage/cache/anydbm.py |
658 |
+++ b/lib/portage/cache/anydbm.py |
659 |
@@ -1,9 +1,7 @@ |
660 |
-# Copyright 2005-2010 Gentoo Foundation |
661 |
+# Copyright 2005-2020 Gentoo Authors |
662 |
# Distributed under the terms of the GNU General Public License v2 |
663 |
# Author(s): Brian Harring (ferringb@g.o) |
664 |
|
665 |
-from __future__ import absolute_import |
666 |
- |
667 |
import dbm |
668 |
|
669 |
try: |
670 |
@@ -12,6 +10,7 @@ except ImportError: |
671 |
gdbm = None |
672 |
|
673 |
import pickle |
674 |
+ |
675 |
from portage import _unicode_encode |
676 |
from portage import os |
677 |
from portage.cache import fs_template |
678 |
|
679 |
diff --git a/lib/portage/cache/sqlite.py b/lib/portage/cache/sqlite.py |
680 |
index 3a372bcfc..55ae8f0e5 100644 |
681 |
--- a/lib/portage/cache/sqlite.py |
682 |
+++ b/lib/portage/cache/sqlite.py |
683 |
@@ -1,9 +1,8 @@ |
684 |
# Copyright 1999-2020 Gentoo Authors |
685 |
# Distributed under the terms of the GNU General Public License v2 |
686 |
|
687 |
-from __future__ import division |
688 |
- |
689 |
import re |
690 |
+ |
691 |
from portage.cache import fs_template |
692 |
from portage.cache import cache_errors |
693 |
from portage import os |
694 |
|
695 |
diff --git a/lib/portage/cvstree.py b/lib/portage/cvstree.py |
696 |
index cfcb9f48c..72e2baf84 100644 |
697 |
--- a/lib/portage/cvstree.py |
698 |
+++ b/lib/portage/cvstree.py |
699 |
@@ -2,8 +2,6 @@ |
700 |
# Copyright 1998-2020 Gentoo Authors |
701 |
# Distributed under the terms of the GNU General Public License v2 |
702 |
|
703 |
-from __future__ import print_function |
704 |
- |
705 |
import io |
706 |
import re |
707 |
import stat |
708 |
|
709 |
diff --git a/lib/portage/dbapi/vartree.py b/lib/portage/dbapi/vartree.py |
710 |
index fbf455363..5799d94f2 100644 |
711 |
--- a/lib/portage/dbapi/vartree.py |
712 |
+++ b/lib/portage/dbapi/vartree.py |
713 |
@@ -1,8 +1,6 @@ |
714 |
# Copyright 1998-2020 Gentoo Authors |
715 |
# Distributed under the terms of the GNU General Public License v2 |
716 |
|
717 |
-from __future__ import division |
718 |
- |
719 |
__all__ = [ |
720 |
"vardbapi", "vartree", "dblink"] + \ |
721 |
["write_contents", "tar_contents"] |
722 |
|
723 |
diff --git a/lib/portage/dispatch_conf.py b/lib/portage/dispatch_conf.py |
724 |
index 71693bb36..148c9dd92 100644 |
725 |
--- a/lib/portage/dispatch_conf.py |
726 |
+++ b/lib/portage/dispatch_conf.py |
727 |
@@ -1,13 +1,10 @@ |
728 |
# archive_conf.py -- functionality common to archive-conf and dispatch-conf |
729 |
-# Copyright 2003-2014 Gentoo Foundation |
730 |
+# Copyright 2003-2020 Gentoo Authors |
731 |
# Distributed under the terms of the GNU General Public License v2 |
732 |
|
733 |
- |
734 |
# Library by Wayne Davison <gentoo@×××××.net>, derived from code |
735 |
# written by Jeremy Wohl (http://igmus.org) |
736 |
|
737 |
-from __future__ import print_function |
738 |
- |
739 |
import errno |
740 |
import io |
741 |
import functools |
742 |
|
743 |
diff --git a/lib/portage/elog/mod_echo.py b/lib/portage/elog/mod_echo.py |
744 |
index 52e8fad8d..80f2b11ac 100644 |
745 |
--- a/lib/portage/elog/mod_echo.py |
746 |
+++ b/lib/portage/elog/mod_echo.py |
747 |
@@ -1,9 +1,7 @@ |
748 |
# elog/mod_echo.py - elog dispatch module |
749 |
-# Copyright 2007-2017 Gentoo Foundation |
750 |
+# Copyright 2007-2020 Gentoo Authors |
751 |
# Distributed under the terms of the GNU General Public License v2 |
752 |
|
753 |
-from __future__ import print_function |
754 |
- |
755 |
import sys |
756 |
from portage.output import EOutput, colorize |
757 |
from portage.const import EBUILD_PHASES |
758 |
|
759 |
diff --git a/lib/portage/emaint/main.py b/lib/portage/emaint/main.py |
760 |
index c743f9bc7..a3f7a1031 100644 |
761 |
--- a/lib/portage/emaint/main.py |
762 |
+++ b/lib/portage/emaint/main.py |
763 |
@@ -1,8 +1,6 @@ |
764 |
-# Copyright 2005-2015 Gentoo Foundation |
765 |
+# Copyright 2005-2020 Gentoo Authors |
766 |
# Distributed under the terms of the GNU General Public License v2 |
767 |
|
768 |
-from __future__ import print_function |
769 |
- |
770 |
import argparse |
771 |
import sys |
772 |
import textwrap |
773 |
|
774 |
diff --git a/lib/portage/glsa.py b/lib/portage/glsa.py |
775 |
index 27957180b..9260e7e09 100644 |
776 |
--- a/lib/portage/glsa.py |
777 |
+++ b/lib/portage/glsa.py |
778 |
@@ -1,28 +1,27 @@ |
779 |
# Copyright 2003-2020 Gentoo Authors |
780 |
# Distributed under the terms of the GNU General Public License v2 |
781 |
|
782 |
-from __future__ import absolute_import |
783 |
- |
784 |
-import io |
785 |
-import sys |
786 |
-from urllib.request import urlopen as urllib_request_urlopen |
787 |
import codecs |
788 |
-import re |
789 |
import operator |
790 |
+import portage |
791 |
+import re |
792 |
+import sys |
793 |
import xml.dom.minidom |
794 |
-from io import StringIO |
795 |
+ |
796 |
from functools import reduce |
797 |
|
798 |
-import portage |
799 |
+import io |
800 |
+from io import StringIO |
801 |
+ |
802 |
+from portage import _encodings, _unicode_decode, _unicode_encode |
803 |
from portage import os |
804 |
-from portage import _encodings |
805 |
-from portage import _unicode_decode |
806 |
-from portage import _unicode_encode |
807 |
-from portage.versions import pkgsplit, vercmp |
808 |
-from portage.util import grabfile |
809 |
from portage.const import PRIVATE_PATH |
810 |
-from portage.localization import _ |
811 |
from portage.dep import _slot_separator |
812 |
+from portage.localization import _ |
813 |
+from portage.util import grabfile |
814 |
+from portage.versions import pkgsplit, vercmp |
815 |
+ |
816 |
+from urllib.request import urlopen as urllib_request_urlopen |
817 |
|
818 |
# Note: the space for rgt and rlt is important !! |
819 |
# FIXME: use slot deps instead, requires GLSA format versioning |
820 |
|
821 |
diff --git a/lib/portage/localization.py b/lib/portage/localization.py |
822 |
index de54295a2..ec41caf7b 100644 |
823 |
--- a/lib/portage/localization.py |
824 |
+++ b/lib/portage/localization.py |
825 |
@@ -1,9 +1,7 @@ |
826 |
# localization.py -- Code to manage/help portage localization. |
827 |
-# Copyright 2004-2014 Gentoo Foundation |
828 |
+# Copyright 2004-2020 Gentoo Authors |
829 |
# Distributed under the terms of the GNU General Public License v2 |
830 |
|
831 |
-from __future__ import division |
832 |
- |
833 |
import locale |
834 |
import math |
835 |
|
836 |
|
837 |
diff --git a/lib/portage/metadata.py b/lib/portage/metadata.py |
838 |
index f932c094a..a7177463f 100644 |
839 |
--- a/lib/portage/metadata.py |
840 |
+++ b/lib/portage/metadata.py |
841 |
@@ -1,16 +1,14 @@ |
842 |
# Copyright 1998-2020 Gentoo Authors |
843 |
# Distributed under the terms of the GNU General Public License v2 |
844 |
|
845 |
-from __future__ import print_function |
846 |
- |
847 |
import logging |
848 |
import operator |
849 |
-import portage |
850 |
import sys |
851 |
import signal |
852 |
|
853 |
from _emerge.ProgressHandler import ProgressHandler |
854 |
|
855 |
+import portage |
856 |
from portage import eapi_is_supported |
857 |
from portage import os |
858 |
from portage.cache.cache_errors import CacheError |
859 |
|
860 |
diff --git a/lib/portage/module.py b/lib/portage/module.py |
861 |
index 301bfbdba..c838edb50 100644 |
862 |
--- a/lib/portage/module.py |
863 |
+++ b/lib/portage/module.py |
864 |
@@ -1,9 +1,6 @@ |
865 |
-# Copyright 2005-2015 Gentoo Foundation |
866 |
+# Copyright 2005-2020 Gentoo Authors |
867 |
# Distributed under the terms of the GNU General Public License v2 |
868 |
|
869 |
- |
870 |
-from __future__ import print_function |
871 |
- |
872 |
from portage import os |
873 |
from portage.exception import PortageException |
874 |
from portage.cache.mappings import ProtectedDict |
875 |
|
876 |
diff --git a/lib/portage/news.py b/lib/portage/news.py |
877 |
index 3d6b04e1e..28fcbba3a 100644 |
878 |
--- a/lib/portage/news.py |
879 |
+++ b/lib/portage/news.py |
880 |
@@ -2,8 +2,6 @@ |
881 |
# Copyright 2006-2020 Gentoo Authors |
882 |
# Distributed under the terms of the GNU General Public License v2 |
883 |
|
884 |
-from __future__ import print_function |
885 |
- |
886 |
__all__ = ["NewsManager", "NewsItem", "DisplayRestriction", |
887 |
"DisplayProfileRestriction", "DisplayKeywordRestriction", |
888 |
"DisplayInstalledRestriction", |
889 |
|
890 |
diff --git a/lib/portage/output.py b/lib/portage/output.py |
891 |
index 098285a52..fb621b28c 100644 |
892 |
--- a/lib/portage/output.py |
893 |
+++ b/lib/portage/output.py |
894 |
@@ -1,8 +1,6 @@ |
895 |
# Copyright 1998-2020 Gentoo Authors |
896 |
# Distributed under the terms of the GNU General Public License v2 |
897 |
|
898 |
-from __future__ import division |
899 |
- |
900 |
__docformat__ = "epytext" |
901 |
|
902 |
import errno |
903 |
|
904 |
diff --git a/lib/portage/package/ebuild/fetch.py b/lib/portage/package/ebuild/fetch.py |
905 |
index 65cf6e123..7c61fe463 100644 |
906 |
--- a/lib/portage/package/ebuild/fetch.py |
907 |
+++ b/lib/portage/package/ebuild/fetch.py |
908 |
@@ -1,8 +1,6 @@ |
909 |
# Copyright 2010-2020 Gentoo Authors |
910 |
# Distributed under the terms of the GNU General Public License v2 |
911 |
|
912 |
-from __future__ import print_function |
913 |
- |
914 |
__all__ = ['fetch'] |
915 |
|
916 |
import errno |
917 |
|
918 |
diff --git a/lib/portage/sync/controller.py b/lib/portage/sync/controller.py |
919 |
index 93cf7bfb4..cb68e2c37 100644 |
920 |
--- a/lib/portage/sync/controller.py |
921 |
+++ b/lib/portage/sync/controller.py |
922 |
@@ -1,9 +1,6 @@ |
923 |
# Copyright 2014-2020 Gentoo Authors |
924 |
# Distributed under the terms of the GNU General Public License v2 |
925 |
|
926 |
-from __future__ import print_function |
927 |
- |
928 |
- |
929 |
import sys |
930 |
import logging |
931 |
import grp |
932 |
|
933 |
diff --git a/lib/portage/sync/old_tree_timestamp.py b/lib/portage/sync/old_tree_timestamp.py |
934 |
index aaed18b56..258ff38a6 100644 |
935 |
--- a/lib/portage/sync/old_tree_timestamp.py |
936 |
+++ b/lib/portage/sync/old_tree_timestamp.py |
937 |
@@ -1,8 +1,6 @@ |
938 |
-# Copyright 2010-2014 Gentoo Foundation |
939 |
+# Copyright 2010-2020 Gentoo Authors |
940 |
# Distributed under the terms of the GNU General Public License v2 |
941 |
|
942 |
-from __future__ import division |
943 |
- |
944 |
import locale |
945 |
import logging |
946 |
import time |
947 |
|
948 |
diff --git a/lib/portage/tests/__init__.py b/lib/portage/tests/__init__.py |
949 |
index 84341ddae..972c974f2 100644 |
950 |
--- a/lib/portage/tests/__init__.py |
951 |
+++ b/lib/portage/tests/__init__.py |
952 |
@@ -1,9 +1,7 @@ |
953 |
# tests/__init__.py -- Portage Unit Test functionality |
954 |
-# Copyright 2006-2013 Gentoo Foundation |
955 |
+# Copyright 2006-2020 Gentoo Authors |
956 |
# Distributed under the terms of the GNU General Public License v2 |
957 |
|
958 |
-from __future__ import print_function |
959 |
- |
960 |
import argparse |
961 |
import sys |
962 |
import time |
963 |
|
964 |
diff --git a/lib/portage/tests/util/test_xattr.py b/lib/portage/tests/util/test_xattr.py |
965 |
index 8e8c2a3d6..55b89abd5 100644 |
966 |
--- a/lib/portage/tests/util/test_xattr.py |
967 |
+++ b/lib/portage/tests/util/test_xattr.py |
968 |
@@ -1,10 +1,8 @@ |
969 |
-# Copyright 2010-2015 Gentoo Foundation |
970 |
+# Copyright 2010-2020 Gentoo Authors |
971 |
# Distributed under the terms of the GNU General Public License v2 |
972 |
|
973 |
"""Tests for the portage.util._xattr module""" |
974 |
|
975 |
-from __future__ import print_function |
976 |
- |
977 |
from unittest import mock |
978 |
|
979 |
import subprocess |
980 |
|
981 |
diff --git a/lib/portage/util/_dyn_libs/display_preserved_libs.py b/lib/portage/util/_dyn_libs/display_preserved_libs.py |
982 |
index b16478d2b..8deafc25e 100644 |
983 |
--- a/lib/portage/util/_dyn_libs/display_preserved_libs.py |
984 |
+++ b/lib/portage/util/_dyn_libs/display_preserved_libs.py |
985 |
@@ -1,11 +1,9 @@ |
986 |
-# Copyright 2007-2013 Gentoo Foundation |
987 |
+# Copyright 2007-2020 Gentoo Authors |
988 |
# Distributed under the terms of the GNU General Public License v2 |
989 |
|
990 |
-from __future__ import print_function |
991 |
- |
992 |
import logging |
993 |
- |
994 |
import portage |
995 |
+ |
996 |
from portage.output import colorize |
997 |
|
998 |
def display_preserved_libs(vardb): |
999 |
|
1000 |
diff --git a/lib/portage/util/_eventloop/EventLoop.py b/lib/portage/util/_eventloop/EventLoop.py |
1001 |
index b111238a6..94e637853 100644 |
1002 |
--- a/lib/portage/util/_eventloop/EventLoop.py |
1003 |
+++ b/lib/portage/util/_eventloop/EventLoop.py |
1004 |
@@ -1,8 +1,7 @@ |
1005 |
# Copyright 1999-2020 Gentoo Authors |
1006 |
# Distributed under the terms of the GNU General Public License v2 |
1007 |
|
1008 |
-from __future__ import division |
1009 |
- |
1010 |
+import asyncio as _real_asyncio |
1011 |
import collections |
1012 |
import errno |
1013 |
import functools |
1014 |
@@ -13,8 +12,6 @@ import signal |
1015 |
import time |
1016 |
import traceback |
1017 |
|
1018 |
-import asyncio as _real_asyncio |
1019 |
- |
1020 |
try: |
1021 |
import fcntl |
1022 |
except ImportError: |
1023 |
|
1024 |
diff --git a/lib/portage/util/_eventloop/PollSelectAdapter.py b/lib/portage/util/_eventloop/PollSelectAdapter.py |
1025 |
index 08dc664a4..c4637a352 100644 |
1026 |
--- a/lib/portage/util/_eventloop/PollSelectAdapter.py |
1027 |
+++ b/lib/portage/util/_eventloop/PollSelectAdapter.py |
1028 |
@@ -1,10 +1,9 @@ |
1029 |
-# Copyright 1999-2014 Gentoo Foundation |
1030 |
+# Copyright 1999-2020 Gentoo Authors |
1031 |
# Distributed under the terms of the GNU General Public License v2 |
1032 |
|
1033 |
-from __future__ import division |
1034 |
+import select |
1035 |
|
1036 |
from .PollConstants import PollConstants |
1037 |
-import select |
1038 |
|
1039 |
class PollSelectAdapter: |
1040 |
|
1041 |
|
1042 |
diff --git a/lib/portage/util/_xattr.py b/lib/portage/util/_xattr.py |
1043 |
index 531c61efb..8225cfa30 100644 |
1044 |
--- a/lib/portage/util/_xattr.py |
1045 |
+++ b/lib/portage/util/_xattr.py |
1046 |
@@ -1,4 +1,4 @@ |
1047 |
-# Copyright 2010-2019 Gentoo Authors |
1048 |
+# Copyright 2010-2020 Gentoo Authors |
1049 |
# Distributed under the terms of the GNU General Public License v2 |
1050 |
|
1051 |
"""Portability shim for xattr support |
1052 |
@@ -11,8 +11,6 @@ See the standard xattr module for more documentation: |
1053 |
https://pypi.python.org/pypi/pyxattr |
1054 |
""" |
1055 |
|
1056 |
-from __future__ import print_function |
1057 |
- |
1058 |
import contextlib |
1059 |
import os |
1060 |
import subprocess |
1061 |
|
1062 |
diff --git a/lib/portage/util/locale.py b/lib/portage/util/locale.py |
1063 |
index f7e99a4fd..99c8f7ae7 100644 |
1064 |
--- a/lib/portage/util/locale.py |
1065 |
+++ b/lib/portage/util/locale.py |
1066 |
@@ -1,12 +1,12 @@ |
1067 |
#-*- coding:utf-8 -*- |
1068 |
-# Copyright 2015 Gentoo Foundation |
1069 |
+# Copyright 2015-2020 Gentoo Authors |
1070 |
# Distributed under the terms of the GNU General Public License v2 |
1071 |
+ |
1072 |
""" |
1073 |
Function to check whether the current used LC_CTYPE handles case |
1074 |
transformations of ASCII characters in a way compatible with the POSIX |
1075 |
locale. |
1076 |
""" |
1077 |
-from __future__ import absolute_import |
1078 |
|
1079 |
import locale |
1080 |
import logging |
1081 |
|
1082 |
diff --git a/lib/portage/util/movefile.py b/lib/portage/util/movefile.py |
1083 |
index 3a17d5240..4f8054f29 100644 |
1084 |
--- a/lib/portage/util/movefile.py |
1085 |
+++ b/lib/portage/util/movefile.py |
1086 |
@@ -1,8 +1,6 @@ |
1087 |
# Copyright 2010-2020 Gentoo Authors |
1088 |
# Distributed under the terms of the GNU General Public License v2 |
1089 |
|
1090 |
-from __future__ import absolute_import |
1091 |
- |
1092 |
__all__ = ['movefile'] |
1093 |
|
1094 |
import errno |
1095 |
|
1096 |
diff --git a/repoman/bin/repoman b/repoman/bin/repoman |
1097 |
index 7f6187f12..29c630772 100755 |
1098 |
--- a/repoman/bin/repoman |
1099 |
+++ b/repoman/bin/repoman |
1100 |
@@ -1,14 +1,13 @@ |
1101 |
#!/usr/bin/env python |
1102 |
-# Copyright 1999-2017 Gentoo Foundation |
1103 |
+# Copyright 1999-2020 Gentoo Authors |
1104 |
# Distributed under the terms of the GNU General Public License v2 |
1105 |
|
1106 |
"""Ebuild and tree health checks and maintenance utilities. |
1107 |
""" |
1108 |
|
1109 |
-from __future__ import print_function |
1110 |
- |
1111 |
import sys |
1112 |
import errno |
1113 |
+ |
1114 |
# This block ensures that ^C interrupts are handled quietly. |
1115 |
try: |
1116 |
import signal |
1117 |
|
1118 |
diff --git a/repoman/lib/repoman/actions.py b/repoman/lib/repoman/actions.py |
1119 |
index 1afc4acb1..6f7313386 100644 |
1120 |
--- a/repoman/lib/repoman/actions.py |
1121 |
+++ b/repoman/lib/repoman/actions.py |
1122 |
@@ -1,9 +1,7 @@ |
1123 |
# -*- coding:utf-8 -*- |
1124 |
-# Copyright 1999-2019 Gentoo Authors |
1125 |
+# Copyright 1999-2020 Gentoo Authors |
1126 |
# Distributed under the terms of the GNU General Public License v2 |
1127 |
|
1128 |
-from __future__ import print_function |
1129 |
- |
1130 |
import errno |
1131 |
import io |
1132 |
import logging |
1133 |
|
1134 |
diff --git a/repoman/lib/repoman/errors.py b/repoman/lib/repoman/errors.py |
1135 |
index 3509ecc06..2ea46803b 100644 |
1136 |
--- a/repoman/lib/repoman/errors.py |
1137 |
+++ b/repoman/lib/repoman/errors.py |
1138 |
@@ -1,7 +1,5 @@ |
1139 |
# -*- coding:utf-8 -*- |
1140 |
|
1141 |
-from __future__ import print_function |
1142 |
- |
1143 |
import sys |
1144 |
|
1145 |
|
1146 |
|
1147 |
diff --git a/repoman/lib/repoman/gpg.py b/repoman/lib/repoman/gpg.py |
1148 |
index 4e55a6e37..ba16ab75b 100644 |
1149 |
--- a/repoman/lib/repoman/gpg.py |
1150 |
+++ b/repoman/lib/repoman/gpg.py |
1151 |
@@ -1,7 +1,5 @@ |
1152 |
# -*- coding:utf-8 -*- |
1153 |
|
1154 |
-from __future__ import print_function |
1155 |
- |
1156 |
import errno |
1157 |
import logging |
1158 |
import subprocess |
1159 |
|
1160 |
diff --git a/repoman/lib/repoman/main.py b/repoman/lib/repoman/main.py |
1161 |
index 38c6a1759..28a0d8a60 100755 |
1162 |
--- a/repoman/lib/repoman/main.py |
1163 |
+++ b/repoman/lib/repoman/main.py |
1164 |
@@ -1,16 +1,15 @@ |
1165 |
#!/usr/bin/env python |
1166 |
# -*- coding:utf-8 -*- |
1167 |
-# Copyright 1999-2017 Gentoo Foundation |
1168 |
+# Copyright 1999-2020 Gentoo Authors |
1169 |
# Distributed under the terms of the GNU General Public License v2 |
1170 |
|
1171 |
-from __future__ import print_function |
1172 |
- |
1173 |
import io |
1174 |
import logging |
1175 |
import sys |
1176 |
|
1177 |
# import our centrally initialized portage instance |
1178 |
from repoman._portage import portage |
1179 |
+ |
1180 |
portage._internal_caller = True |
1181 |
portage._disable_legacy_globals() |
1182 |
|
1183 |
|
1184 |
diff --git a/repoman/lib/repoman/metadata.py b/repoman/lib/repoman/metadata.py |
1185 |
index 2aaedd4b0..f255a61e8 100644 |
1186 |
--- a/repoman/lib/repoman/metadata.py |
1187 |
+++ b/repoman/lib/repoman/metadata.py |
1188 |
@@ -1,7 +1,5 @@ |
1189 |
# -*- coding:utf-8 -*- |
1190 |
|
1191 |
-from __future__ import print_function |
1192 |
- |
1193 |
import errno |
1194 |
import logging |
1195 |
import sys |
1196 |
|
1197 |
diff --git a/repoman/lib/repoman/modules/commit/repochecks.py b/repoman/lib/repoman/modules/commit/repochecks.py |
1198 |
index 523d414d2..1a287f978 100644 |
1199 |
--- a/repoman/lib/repoman/modules/commit/repochecks.py |
1200 |
+++ b/repoman/lib/repoman/modules/commit/repochecks.py |
1201 |
@@ -1,7 +1,5 @@ |
1202 |
# -*- coding:utf-8 -*- |
1203 |
|
1204 |
-from __future__ import print_function |
1205 |
- |
1206 |
from portage.output import red |
1207 |
|
1208 |
from repoman.errors import err |
1209 |
|
1210 |
diff --git a/repoman/lib/repoman/modules/scan/ebuild/ebuild.py b/repoman/lib/repoman/modules/scan/ebuild/ebuild.py |
1211 |
index 14d6178d7..87500d205 100644 |
1212 |
--- a/repoman/lib/repoman/modules/scan/ebuild/ebuild.py |
1213 |
+++ b/repoman/lib/repoman/modules/scan/ebuild/ebuild.py |
1214 |
@@ -1,7 +1,5 @@ |
1215 |
# -*- coding:utf-8 -*- |
1216 |
|
1217 |
-from __future__ import print_function |
1218 |
- |
1219 |
import re |
1220 |
import stat |
1221 |
|
1222 |
@@ -11,6 +9,7 @@ from _emerge.RootConfig import RootConfig |
1223 |
from repoman.modules.scan.scanbase import ScanBase |
1224 |
# import our initialized portage instance |
1225 |
from repoman._portage import portage |
1226 |
+ |
1227 |
from portage import os |
1228 |
from portage.exception import InvalidPackageName |
1229 |
|
1230 |
|
1231 |
diff --git a/repoman/lib/repoman/modules/vcs/settings.py b/repoman/lib/repoman/modules/vcs/settings.py |
1232 |
index f90f05963..2770e0331 100644 |
1233 |
--- a/repoman/lib/repoman/modules/vcs/settings.py |
1234 |
+++ b/repoman/lib/repoman/modules/vcs/settings.py |
1235 |
@@ -2,12 +2,11 @@ |
1236 |
Repoman VCSSettings modules |
1237 |
''' |
1238 |
|
1239 |
-from __future__ import print_function |
1240 |
- |
1241 |
import logging |
1242 |
import sys |
1243 |
|
1244 |
from portage.output import red |
1245 |
+ |
1246 |
from repoman.modules.vcs import module_controller, module_names |
1247 |
from repoman.modules.vcs.vcs import FindVCS |
1248 |
from repoman.qa_tracker import QATracker |
1249 |
|
1250 |
diff --git a/repoman/lib/repoman/modules/vcs/vcs.py b/repoman/lib/repoman/modules/vcs/vcs.py |
1251 |
index b19f486a8..fbf99d458 100644 |
1252 |
--- a/repoman/lib/repoman/modules/vcs/vcs.py |
1253 |
+++ b/repoman/lib/repoman/modules/vcs/vcs.py |
1254 |
@@ -1,9 +1,8 @@ |
1255 |
# -*- coding:utf-8 -*- |
1256 |
|
1257 |
-from __future__ import print_function |
1258 |
- |
1259 |
import collections |
1260 |
import logging |
1261 |
+ |
1262 |
from itertools import chain |
1263 |
|
1264 |
from portage import os |
1265 |
|
1266 |
diff --git a/repoman/lib/repoman/profile.py b/repoman/lib/repoman/profile.py |
1267 |
index b17389c55..2337522d3 100644 |
1268 |
--- a/repoman/lib/repoman/profile.py |
1269 |
+++ b/repoman/lib/repoman/profile.py |
1270 |
@@ -1,7 +1,5 @@ |
1271 |
# -*- coding:utf-8 -*- |
1272 |
|
1273 |
-from __future__ import print_function |
1274 |
- |
1275 |
from portage import normalize_path |
1276 |
from portage import os |
1277 |
from portage.output import red |
1278 |
|
1279 |
diff --git a/repoman/lib/repoman/scanner.py b/repoman/lib/repoman/scanner.py |
1280 |
index 8d2ce9052..f9df73d83 100644 |
1281 |
--- a/repoman/lib/repoman/scanner.py |
1282 |
+++ b/repoman/lib/repoman/scanner.py |
1283 |
@@ -1,16 +1,16 @@ |
1284 |
# -*- coding:utf-8 -*- |
1285 |
|
1286 |
-from __future__ import print_function |
1287 |
- |
1288 |
import logging |
1289 |
+import portage |
1290 |
+ |
1291 |
from itertools import chain |
1292 |
|
1293 |
-import portage |
1294 |
from portage import normalize_path |
1295 |
from portage import os |
1296 |
from portage._sets.base import InternalPackageSet |
1297 |
from portage.output import green |
1298 |
from portage.util.futures.extendedfutures import ExtendedFuture |
1299 |
+ |
1300 |
from repoman.metadata import get_metadata_xsd |
1301 |
from repoman.modules.commit import repochecks |
1302 |
from repoman.modules.commit import manifest |
1303 |
|
1304 |
diff --git a/repoman/lib/repoman/tests/__init__.py b/repoman/lib/repoman/tests/__init__.py |
1305 |
index 48c52c499..85c6f0b54 100644 |
1306 |
--- a/repoman/lib/repoman/tests/__init__.py |
1307 |
+++ b/repoman/lib/repoman/tests/__init__.py |
1308 |
@@ -1,9 +1,7 @@ |
1309 |
# tests/__init__.py -- Portage Unit Test functionality |
1310 |
-# Copyright 2006-2013 Gentoo Foundation |
1311 |
+# Copyright 2006-2020 Gentoo Authors |
1312 |
# Distributed under the terms of the GNU General Public License v2 |
1313 |
|
1314 |
-from __future__ import print_function |
1315 |
- |
1316 |
import argparse |
1317 |
import sys |
1318 |
import time |
1319 |
|
1320 |
diff --git a/repoman/lib/repoman/utilities.py b/repoman/lib/repoman/utilities.py |
1321 |
index 2d25fd309..c4c292227 100644 |
1322 |
--- a/repoman/lib/repoman/utilities.py |
1323 |
+++ b/repoman/lib/repoman/utilities.py |
1324 |
@@ -1,13 +1,11 @@ |
1325 |
# -*- coding:utf-8 -*- |
1326 |
# repoman: Utilities |
1327 |
-# Copyright 2007-2018 Gentoo Foundation |
1328 |
+# Copyright 2007-2020 Gentoo Authors |
1329 |
# Distributed under the terms of the GNU General Public License v2 |
1330 |
|
1331 |
"""This module contains utility functions to help repoman find ebuilds to |
1332 |
scan""" |
1333 |
|
1334 |
-from __future__ import print_function |
1335 |
- |
1336 |
__all__ = [ |
1337 |
"editor_is_executable", |
1338 |
"FindPackagesToScan", |
1339 |
|
1340 |
diff --git a/repoman/runtests b/repoman/runtests |
1341 |
index bbda4526f..3edaaf0a8 100755 |
1342 |
--- a/repoman/runtests |
1343 |
+++ b/repoman/runtests |
1344 |
@@ -1,5 +1,5 @@ |
1345 |
#!/usr/bin/env python |
1346 |
-# Copyright 2010-2017 Gentoo Foundation |
1347 |
+# Copyright 2010-2020 Gentoo Authors |
1348 |
# Distributed under the terms of the GNU General Public License v2 |
1349 |
# |
1350 |
# Note: We don't want to import portage modules directly because we do things |
1351 |
@@ -11,8 +11,6 @@ Note: Any additional arguments will be passed down directly to the underlying |
1352 |
unittest runner. This lets you select specific tests to execute. |
1353 |
""" |
1354 |
|
1355 |
-from __future__ import print_function |
1356 |
- |
1357 |
import argparse |
1358 |
import os |
1359 |
import shutil |
1360 |
|
1361 |
diff --git a/repoman/setup.py b/repoman/setup.py |
1362 |
index f2664fae4..5fcfe12e6 100755 |
1363 |
--- a/repoman/setup.py |
1364 |
+++ b/repoman/setup.py |
1365 |
@@ -1,9 +1,7 @@ |
1366 |
#!/usr/bin/env python |
1367 |
-# Copyright 1998-2014 Gentoo Foundation |
1368 |
+# Copyright 1998-2020 Gentoo Authors |
1369 |
# Distributed under the terms of the GNU General Public License v2 |
1370 |
|
1371 |
-from __future__ import print_function |
1372 |
- |
1373 |
from distutils.core import setup, Command |
1374 |
from distutils.command.build import build |
1375 |
from distutils.command.build_scripts import build_scripts |
1376 |
|
1377 |
diff --git a/runtests b/runtests |
1378 |
index 8cbd9620f..685a7d9c7 100755 |
1379 |
--- a/runtests |
1380 |
+++ b/runtests |
1381 |
@@ -1,5 +1,5 @@ |
1382 |
#!/usr/bin/python |
1383 |
-# Copyright 2010-2015 Gentoo Foundation |
1384 |
+# Copyright 2010-2020 Gentoo Authors |
1385 |
# Distributed under the terms of the GNU General Public License v2 |
1386 |
# |
1387 |
# Note: We don't want to import portage modules directly because we do things |
1388 |
@@ -11,8 +11,6 @@ Note: Any additional arguments will be passed down directly to the underlying |
1389 |
unittest runner. This lets you select specific tests to execute. |
1390 |
""" |
1391 |
|
1392 |
-from __future__ import print_function |
1393 |
- |
1394 |
import argparse |
1395 |
import os |
1396 |
import shutil |
1397 |
|
1398 |
diff --git a/setup.py b/setup.py |
1399 |
index bef5c31fa..c016db98d 100755 |
1400 |
--- a/setup.py |
1401 |
+++ b/setup.py |
1402 |
@@ -2,8 +2,6 @@ |
1403 |
# Copyright 1998-2020 Gentoo Authors |
1404 |
# Distributed under the terms of the GNU General Public License v2 |
1405 |
|
1406 |
-from __future__ import print_function |
1407 |
- |
1408 |
from distutils.core import setup, Command, Extension |
1409 |
from distutils.command.build import build |
1410 |
from distutils.command.build_ext import build_ext as _build_ext |