Path: csiph.com!tncsrv06.tnetconsulting.net!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod From: Alexandre Detiste Newsgroups: linux.debian.maint.python Subject: Re: python-debian | remove some Python2 dead code (!131) Date: Mon, 08 Jul 2024 22:00:01 +0200 Message-ID: References: X-Mailbox-Line: From debian-python-request@lists.debian.org Mon Jul 8 19:50:03 2024 Old-Return-Path: X-Amavis-Spam-Status: No, score=-7.199 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, LDO_WHITELIST=-5, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham autolearn_force=no X-Policyd-Weight: using cached result; rate: -5.5 X-Gm-Message-State: AOJu0YygxA9H1EvbmL2P0XKWZ8RRFTrzAO+9vZgm47MpoQwTx8hkR4Ep mOeHroUf2VuLQMYORO9gsHAJd9C7whYW9HtX0WckQykdVpf8zF1nHpufKOdJnAU/1FKbkQRg1ZN CkGCD6fCuXB7mQgx9DUsk87hgv5E= X-Google-SMTP-Source: AGHT+IHXdzMkq94i+/zhGX5Eq8BY2zncwi4aqY0aAFuMdIFLB0oSnm6TBvUnetdnEZWyXlNjCiCfCCSTxveBdM2iHZ8= X-Received: by 2002:a25:d08f:0:b0:e03:ab1d:dd43 with SMTP id 3f1490d57ef6-e041b05fa79mr876896276.24.1720468184984; Mon, 08 Jul 2024 12:49:44 -0700 (PDT) MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Mailing-List: archive/latest/22046 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/CADsTwjJ=vWxfz0OyyReh-HUk9qGuSYZ6DH8-PhzSkjzB6w-N8w@mail.gmail.com Approved: robomod@news.nic.it Lines: 32 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Cc: Debian Python X-Original-Date: Mon, 8 Jul 2024 21:49:34 +0200 X-Original-Message-ID: X-Original-References: <60bb832a-2425-4183-900b-70b131c5a485@debian.org> Xref: csiph.com linux.debian.maint.python:16010 Ha ! https://github.com/ilevkivskyi/com2ann Le dim. 17 mars 2024 =C3=A0 23:01, Thomas Goirand a =C3= =A9crit : > > On 3/17/24 14:56, Alexandre Detiste wrote: > > Hi, > > > > Does anyone know some automated tool to convert Python2-style annotatio= ns > > into Python3-style ? > > > > python-debian $ grep '# type' -r | wc -l > > 1499 > > > > Greetings > > You may try to run "sixer" which was written by a Python core developer, > and used to convert all of OpenStack to python2 + 3 using six. Once it > has found all the things that may use six, you can manually convert to > *not* use six anymore. I did this multiple times, and it worked well for > me at least. > > I hope this helps, > Cheers, > > Thomas Goirand (zigo) >