From 2a33db96531933f00405522d94ebc658236f0b84 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Thu, 4 Aug 2022 18:26:08 +0200 Subject: gnulib-tool.py: Use mainstream/GNU coding style. * gnulib-tool.py: Break lines before the % operator, not after. * pygnulib/*.py: Likewise. Avoid line breaks when the resulting lines are not too long. --- pygnulib/constants.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'pygnulib/constants.py') diff --git a/pygnulib/constants.py b/pygnulib/constants.py index bf01f86f39..70864f9f8d 100644 --- a/pygnulib/constants.py +++ b/pygnulib/constants.py @@ -404,10 +404,10 @@ def filter_filelist(separator, filelist, listing = list() for filename in filelist: if filename.startswith(prefix) and filename.endswith(suffix): - pattern = compiler('^%s(.*?)%s$' % - (removed_prefix, removed_suffix)) - result = pattern.sub('%s\\1%s' % - (added_prefix, added_suffix), filename) + pattern = compiler('^%s(.*?)%s$' + % (removed_prefix, removed_suffix)) + result = pattern.sub('%s\\1%s' + % (added_prefix, added_suffix), filename) listing += [result] result = separator.join(listing) return result -- cgit v1.2.1