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


Groups > linux.debian.maint.python > #13374

Bug#988658: RFP: python3-pyupgrade -- Automatically upgrade syntax for newer versions of the Python language

Path csiph.com!usenet.pasdenom.info!aioe.org!bofh.it!news.nic.it!robomod
From Raphael Hertzog <hertzog@debian.org>
Newsgroups linux.debian.bugs.dist, linux.debian.maint.python
Subject Bug#988658: RFP: python3-pyupgrade -- Automatically upgrade syntax for newer versions of the Python language
Date Mon, 17 May 2021 15:40:01 +0200
Message-ID <CfLDr-7nv-5@gated-at.bofh.it> (permalink)
X-Mailbox-Line From debian-bugs-dist-request@lists.debian.org Mon May 17 13:39:11 2021
Old-Return-Path <debbugs@buxtehude.debian.org>
X-Spam-Flag NO
X-Spam-Score -4.2
Reply-To Raphael Hertzog <hertzog@debian.org>, 988658@bugs.debian.org
Resent-To debian-bugs-dist@lists.debian.org
Resent-Cc debian-python@lists.debian.org, wnpp@debian.org
X-Debian-Pr-Message report 988658
X-Debian-Pr-Package wnpp
MIME-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Disposition inline
Content-Transfer-Encoding 8bit
X-Reportbug-Version 7.10.3
X-Debian-Message from BTS
X-Mailing-List <debian-bugs-dist@lists.debian.org> archive/latest/1664475
List-ID <debian-bugs-dist.lists.debian.org>
List-URL <https://lists.debian.org/debian-bugs-dist/>
Approved robomod@news.nic.it
Lines 36
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Date Mon, 17 May 2021 15:34:29 +0200
X-Original-Message-ID <YKJw5TEIz9My3WGs@t14-buxy.home.ouaza.com>
Xref csiph.com linux.debian.bugs.dist:1059203 linux.debian.maint.python:13374

Cross-posted to 2 groups.

Show key headers only | View raw


Package: wnpp
Severity: wishlist
X-Debbugs-Cc: debian-python@lists.debian.org

* Package name    : python3-pyupgrade
  Version         : 2.16.0
  Upstream Author : Anthony Sottile 
* URL             : https://github.com/asottile/pyupgrade
* License         : BSD
  Programming Lang: Python
  Description     : Automatically upgrade syntax for newer versions of the Python language

This helper script can help you normalize your Python source code
by rewriting parts of your code to use the latest syntax improvements.

Some examples from the README:

set([])              # set()

'{0} {1}'.format(1, 2)    # '{} {}'.format(1, 2)

x is 5      # x == 5

'{foo} {bar}'.format(foo=foo, bar=bar)  # f'{foo} {bar}'


I discovered this tool by reading some documentation and I'd like
it to be available in Debian so that I can try it and use it :-)

ccing debian-python@lists.debian.org in the hope to catch the attention of
someone with more time than me.

Thank you!

-- 
Raphaƫl Hertzog

Back to linux.debian.maint.python | Previous | Next | Find similar | Unroll thread


Thread

Bug#988658: RFP: python3-pyupgrade -- Automatically upgrade syntax for newer versions of the Python language Raphael Hertzog <hertzog@debian.org> - 2021-05-17 15:40 +0200

csiph-web