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

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 2021-05-17 15:40 +0200
Message-ID <CfLDr-7nv-5@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Cross-posted to 2 groups.

Show all headers | 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