summaryrefslogtreecommitdiff
path: root/scripts/make_errors.py
diff options
context:
space:
mode:
authorHugo van Kemenade <hugovk@users.noreply.github.com>2020-11-17 21:37:42 +0200
committerHugo van Kemenade <hugovk@users.noreply.github.com>2020-11-17 22:22:11 +0200
commit7babeccbececd9dd02642dfd193a3c3a0fc0dbe7 (patch)
treefe83142e2763e9d922edbb97b16db6f46bb84a52 /scripts/make_errors.py
parent6c48b63ae4a70da6dbbc5b6eef20806d7f505950 (diff)
Upgrade Python syntax with pyupgrade --py36-plus
Diffstat (limited to 'scripts/make_errors.py')
-rwxr-xr-xscripts/make_errors.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/make_errors.py b/scripts/make_errors.py
index 0d0a3a81..e36d00a1 100755
--- a/scripts/make_errors.py
+++ b/scripts/make_errors.py
@@ -16,7 +16,6 @@ The script can be run at a new PostgreSQL release to refresh the module.
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
# License for more details.
-from __future__ import print_function
import os
import re
@@ -86,7 +85,7 @@ def fetch_errors(versions):
for version in versions:
print(version, file=sys.stderr)
tver = tuple(map(int, version.split()[0].split('.')))
- tag = '%s%s_STABLE' % (
+ tag = '{}{}_STABLE'.format(
(tver[0] >= 10 and 'REL_' or 'REL'),
version.replace('.', '_'))
c1, e1 = parse_errors_txt(errors_txt_url % tag)