Package doesn't build due to new pycodestyle (2.6.0-1~20.04.1) found in focal-proposed as opposed to its former version (2.5.0-2) that now detects the following during the test:
Running pycodestyle...
./setup.py:78:33: E741 ambiguous variable name 'l'
./test/test_fileutils.py:380:13: E741 ambiguous variable name 'l'
./test/test_signal_crashes.py:141:13: E741 ambiguous variable name 'l'
./test/test_ui.py:1773:43: E741 ambiguous variable name 'l'
./backends/packaging-apt-dpkg.py:1222:13: E741 ambiguous variable name 'l'
./backends/packaging-apt-dpkg.py:1233:17: E741 ambiguous variable name 'l'
./build/lib/apport/__init__.py:67:13: E741 ambiguous variable name 'l'
./build/lib/apport/fileutils.py:332:9: E741 ambiguous variable name 'l'
./build/lib/apport/hookutils.py:620:9: E741 ambiguous variable name 'l'
./build/lib/apport/hookutils.py:630:9: E741 ambiguous variable name 'l'
This has been addressed in apport groovy where ambiguous 'l' have been replaced by 'line'.
[sts-sponsor note]
Package doesn't build due to new pycodestyle (2.6.0-1~20.04.1) found in focal-proposed as opposed to its former version (2.5.0-2) that now detects the following during the test:
Running pycodestyle... test_fileutils. py:380: 13: E741 ambiguous variable name 'l' test_signal_ crashes. py:141: 13: E741 ambiguous variable name 'l' test_ui. py:1773: 43: E741 ambiguous variable name 'l' packaging- apt-dpkg. py:1222: 13: E741 ambiguous variable name 'l' packaging- apt-dpkg. py:1233: 17: E741 ambiguous variable name 'l' lib/apport/ __init_ _.py:67: 13: E741 ambiguous variable name 'l' lib/apport/ fileutils. py:332: 9: E741 ambiguous variable name 'l' lib/apport/ hookutils. py:620: 9: E741 ambiguous variable name 'l' lib/apport/ hookutils. py:630: 9: E741 ambiguous variable name 'l'
./setup.py:78:33: E741 ambiguous variable name 'l'
./test/
./test/
./test/
./backends/
./backends/
./build/
./build/
./build/
./build/
This has been addressed in apport groovy where ambiguous 'l' have been replaced by 'line'.
# d/changelog
apport (2.20.11-0ubuntu42) groovy; urgency=medium
* Fix pep8 errors regarding ambiguous variables.
-- Brian Murray <email address hidden> Wed, 24 Jun 2020 09:15:51 -0700
Patch example:
...
- for l in lines:
- fd.write(l)
+ for line in lines:
+ fd.write(line)
...
The same fix now need to be applied into focal for the package to start building again.