Coding style: fix pep8 + flake8 issues
authorMichael Prokop <mika@grml.org>
Thu, 2 Apr 2020 13:45:54 +0000 (15:45 +0200)
committerMichael Prokop <mika@grml.org>
Thu, 2 Apr 2020 15:08:59 +0000 (17:08 +0200)
commitd01d9d8b10e50be452bb5b3c86f1db127fad09fc
treefbf0017d2179874d1380f3fe32978f23ccb456c5
parent7a5091a230c93ae5d7c4d873a10aad16eb949bb3
Coding style: fix pep8 + flake8 issues

Fix:

| W605 invalid escape sequence '\s'

by using re.compile(r'...') instead of re.compile("...")

Fix:

| E261 at least two spaces before inline comment

introduced in commit ed5b633be961ef6b3

Fix flake8 issues:

| grml2usb:409:5: F841 local variable 'e' is assigned to but never used
| grml2usb:557:34: W504 line break after binary operator
| grml2usb:559:34: W504 line break after binary operator
| grml2usb:737:37: W504 line break after binary operator
| grml2usb:1615:13: F841 local variable 'error' is assigned to but never used
| grml2usb:1641:9: F841 local variable 'error' is assigned to but never used
| grml2usb:1665:5: F841 local variable 'error' is assigned to but never used
| grml2usb:1826:30: W504 line break after binary operator
| grml2usb:1832:30: W504 line break after binary operator

The https://www.flake8rules.com/rules/W503.html vs
https://www.flake8rules.com/rules/W504.html is strange,
though let's use what black(1) (see https://github.com/psf/black)
uses.
grml2usb