aboutsummaryrefslogtreecommitdiffstats
path: root/debian/lib/python/debian_linux/abi.py
diff options
context:
space:
mode:
authorBen Hutchings <ben@decadent.org.uk>2018-10-01 16:22:49 +0100
committerBen Hutchings <ben@decadent.org.uk>2018-10-01 21:41:23 +0100
commitaf0098b10aadcfd31fb8ab3cb23c2e41f82e9cc5 (patch)
tree8ab7905f109fa94da57a3af6ac877a67e7ea8c20 /debian/lib/python/debian_linux/abi.py
parent79ecbb0832fa2f858bef961cc8412b7c8a279787 (diff)
downloadkernel_replicant_linux-af0098b10aadcfd31fb8ab3cb23c2e41f82e9cc5.tar.gz
kernel_replicant_linux-af0098b10aadcfd31fb8ab3cb23c2e41f82e9cc5.tar.bz2
kernel_replicant_linux-af0098b10aadcfd31fb8ab3cb23c2e41f82e9cc5.zip
debian/bin, debian/lib/python: Fix most errors reported by pycodestyle
Fix coding style violations reported by pycodestyle. This is mostly a matter of reformatting code, particularly to eliminate over-long lines. I also rename one variable ("l" is considered visually ambiguous) and change a bare "except" to explicitly catch all exceptions. There are three types of error or warning remaining: - debian/bin/...: E402 module level import not at top of file Scripts in debian/bin need to modify the import path before importing from debian/lib/python. - E127 continuation line over-indented for visual indent This seems to be a false positive. pycodestyle doesn't seem to be happy with any level of indent (including 0) on a continuation line in a "with" statement. - debian/lib/python/debian_linux/debian.py:15:2: W291 trailing whitespace This is a false positive. The trailing spaces are in a long string and are intentional.
Diffstat (limited to 'debian/lib/python/debian_linux/abi.py')
-rw-r--r--debian/lib/python/debian_linux/abi.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/debian/lib/python/debian_linux/abi.py b/debian/lib/python/debian_linux/abi.py
index 0c4b3bdbc7c9..8532db16da8e 100644
--- a/debian/lib/python/debian_linux/abi.py
+++ b/debian/lib/python/debian_linux/abi.py
@@ -39,4 +39,4 @@ class Symbols(dict):
def write(self, file):
for s in sorted(self.values(), key=lambda i: i.name):
file.write("%s %s %s %s\n" %
- (s.version, s.name, s.module, s.export))
+ (s.version, s.name, s.module, s.export))