Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #15605 > unrolled thread

Re: python-debian | remove some Python2 dead code (!131)

Started byAlexandre Detiste <alexandre.detiste@gmail.com>
First post2024-03-17 15:00 +0100
Last post2024-07-08 22:00 +0200
Articles 2 — 1 participant

Back to article view | Back to linux.debian.maint.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: python-debian | remove some Python2 dead code (!131) Alexandre Detiste <alexandre.detiste@gmail.com> - 2024-03-17 15:00 +0100
    Re: python-debian | remove some Python2 dead code (!131) Alexandre Detiste <alexandre.detiste@gmail.com> - 2024-07-08 22:00 +0200

#15605 — Re: python-debian | remove some Python2 dead code (!131)

FromAlexandre Detiste <alexandre.detiste@gmail.com>
Date2024-03-17 15:00 +0100
SubjectRe: python-debian | remove some Python2 dead code (!131)
Message-ID<IiZdo-hjWe-11@gated-at.bofh.it>
Hi,

Does anyone know some automated tool to convert Python2-style annotations
into Python3-style ?

python-debian $ grep '# type' -r | wc -l
1499

Greetings

Le dim. 17 mars 2024 à 13:46, Jelmer Vernooij (@jelmer)
<gitlab@salsa.debian.org> a écrit :
>
> Jelmer Vernooij commented on a discussion:
>
> Yes, we should be able to migrate to modern type annotations - happy to review PRs that make that change :)

https://salsa.debian.org/python-debian-team/python-debian/-/merge_requests/131

[toc] | [next] | [standalone]


#16010

FromAlexandre Detiste <alexandre.detiste@gmail.com>
Date2024-07-08 22:00 +0200
Message-ID<IY2GJ-KB3-9@gated-at.bofh.it>
In reply to#15605
Ha !

https://github.com/ilevkivskyi/com2ann



Le dim. 17 mars 2024 à 23:01, Thomas Goirand <zigo@debian.org> a écrit :
>
> On 3/17/24 14:56, Alexandre Detiste wrote:
> > Hi,
> >
> > Does anyone know some automated tool to convert Python2-style annotations
> > 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)
>

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.maint.python


csiph-web