1 |
On 04/28/2015 05:07 PM, Brian Dolbec wrote: |
2 |
> On Sat, 25 Apr 2015 13:37:10 -0700 |
3 |
> Zac Medico <zmedico@g.o> wrote: |
4 |
> |
5 |
>> Python's formatter module is scheduled for removal in Python 3.6, so |
6 |
>> replace it with a minimalistic derivation. |
7 |
>> |
8 |
>> X-Gentoo-Bug: 547732 |
9 |
>> X-Gentoo-Bug-url: https://bugs.gentoo.org/show_bug.cgi?id=547732 |
10 |
>> --- |
11 |
>> bin/repoman | 2 +- |
12 |
>> pym/_emerge/JobStatusDisplay.py | 4 +-- |
13 |
>> pym/portage/output.py | 4 +-- |
14 |
>> pym/portage/util/formatter.py | 69 |
15 |
>> +++++++++++++++++++++++++++++++++++++++++ 4 files changed, 74 |
16 |
>> insertions(+), 5 deletions(-) create mode 100644 |
17 |
>> pym/portage/util/formatter.py |
18 |
>> |
19 |
>> |
20 |
> |
21 |
> |
22 |
> Is this really the best way to deal with the deprecation for py3.6+ ??? |
23 |
|
24 |
I think it's reasonable because it allows us to avoid migrating the |
25 |
formatting code to some other API. |
26 |
|
27 |
Both repoman and JobStatusDisplay use this API to render both formatted |
28 |
and unformatted output simultaneously. They display styled output with |
29 |
colors on the console, and also render an unformatted version (repoman's |
30 |
commit message and JobStatusDisplay's xterm titiles). |
31 |
-- |
32 |
Thanks, |
33 |
Zac |