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


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

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

Started byRaphael Hertzog <hertzog@debian.org>
First post2021-05-17 15:40 +0200
Last post2021-05-17 15:40 +0200
Articles 1 — 1 participant

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


Contents

  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

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

FromRaphael Hertzog <hertzog@debian.org>
Date2021-05-17 15:40 +0200
SubjectBug#988658: RFP: python3-pyupgrade -- Automatically upgrade syntax for newer versions of the Python language
Message-ID<CfLDr-7nv-5@gated-at.bofh.it>
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

[toc] | [standalone]


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


csiph-web