From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-portage-dev@lists.gentoo.org,Ulrich Mueller <ulm@gentoo.org>
Subject: Re: [gentoo-portage-dev] [PATCH 2/3] Remove support code for Python < 3.3
Date: Fri, 17 Jul 2020 10:57:10 +0000 [thread overview]
Message-ID: <4C4BFFBC-B93B-4F9D-B381-941B16F09EDD@gentoo.org> (raw)
In-Reply-To: <ublkeo93i@gentoo.org>
Dnia July 17, 2020 8:10:25 AM UTC, Ulrich Mueller <ulm@gentoo.org> napisał(a):
>>>>>> On Fri, 17 Jul 2020, Michał Górny wrote:
>
>> --- a/lib/portage/util/_dyn_libs/PreservedLibsRegistry.py
>> +++ b/lib/portage/util/_dyn_libs/PreservedLibsRegistry.py
>> @@ -34,12 +34,9 @@ class PreservedLibsRegistry(object):
>>
>> _json_write_opts = {
>> "ensure_ascii": False,
>> - "indent": "\t",
>> - "sort_keys": True
>> + "indent": 4,
>
>This is assigning 4 now unconditionally, while it was "\t" before for
>modern Python versions. Is this intentional?
I'm sorry, this is my mistakd. I'll fix it when I get home.
>
>> + "sort_keys": True,
>
>Why the added comma?
>
>> }
>> - if sys.hexversion < 0x30200F0:
>> - # indent only supports int number of spaces
>> - _json_write_opts["indent"] = 4
>>
>> def __init__(self, root, filename):
>> """
>
>
>> --- a/lib/portage/util/mtimedb.py
>> +++ b/lib/portage/util/mtimedb.py
>> @@ -29,12 +29,9 @@ class MtimeDB(dict):
>>
>> _json_write_opts = {
>> "ensure_ascii": False,
>> - "indent": "\t",
>> + "indent": 4,
>
>Same here.
>
>> "sort_keys": True
>> }
>> - if sys.hexversion < 0x30200F0:
>> - # indent only supports int number of spaces
>> - _json_write_opts["indent"] = 4
>>
>> def __init__(self, filename):
>> dict.__init__(self)
>
>Ulrich
--
Best regards,
Michał Górny
next prev parent reply other threads:[~2020-07-17 10:58 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-17 4:48 [gentoo-portage-dev] [PATCH 1/3] Remove support code for Python < 3.2 Michał Górny
2020-07-17 4:48 ` [gentoo-portage-dev] [PATCH 2/3] Remove support code for Python < 3.3 Michał Górny
2020-07-17 8:10 ` Ulrich Mueller
2020-07-17 10:57 ` Michał Górny [this message]
2020-07-17 4:48 ` [gentoo-portage-dev] [PATCH 3/3] Remove support code for Python < 3.4 Michał Górny
2020-07-17 6:16 ` Zac Medico
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4C4BFFBC-B93B-4F9D-B381-941B16F09EDD@gentoo.org \
--to=mgorny@gentoo.org \
--cc=gentoo-portage-dev@lists.gentoo.org \
--cc=ulm@gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox