From: Aarni Koskela Date: Wed, 18 Jan 2023 19:00:31 +0000 (+0200) Subject: Apply ruff UP (Pyupgrade) fixes X-Git-Tag: v2.12.0~19^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb0269fc63f5af4ade770f7a8872de8090bf697d;p=thirdparty%2Fbabel.git Apply ruff UP (Pyupgrade) fixes --- diff --git a/babel/messages/jslexer.py b/babel/messages/jslexer.py index 6eab9207..d2ffbbe7 100644 --- a/babel/messages/jslexer.py +++ b/babel/messages/jslexer.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """ babel.messages.jslexer ~~~~~~~~~~~~~~~~~~~~~~ diff --git a/pyproject.toml b/pyproject.toml index 10c1db8b..dbd137cf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,7 +7,7 @@ select = [ "F", "I", "SIM300", - "UP025", + "UP", ] ignore = [ "C901", # Complexity diff --git a/scripts/import_cldr.py b/scripts/import_cldr.py index b5034073..33e4a609 100755 --- a/scripts/import_cldr.py +++ b/scripts/import_cldr.py @@ -129,7 +129,7 @@ def _time_to_seconds_past_midnight(time_expr): return None if time_expr.count(":") == 1: time_expr += ":00" - hour, minute, second = [int(p, 10) for p in time_expr.split(":")] + hour, minute, second = (int(p, 10) for p in time_expr.split(":")) return hour * 60 * 60 + minute * 60 + second