diff options
author | Bruno Haible <bruno@clisp.org> | 2022-08-04 18:26:08 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2022-08-04 18:26:08 +0200 |
commit | 2a33db96531933f00405522d94ebc658236f0b84 (patch) | |
tree | bf3f2ec3e231c0cb6959e5507b9b527d03ba3a4d /pygnulib/constants.py | |
parent | 948345cceab85ab699910a795d6b69ea2be6e300 (diff) | |
download | gnulib-2a33db96531933f00405522d94ebc658236f0b84.tar.gz |
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.
Diffstat (limited to 'pygnulib/constants.py')
-rw-r--r-- | pygnulib/constants.py | 8 |
1 files changed, 4 insertions, 4 deletions
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 |