Commit Graph

6 Commits

Author SHA1 Message Date
Ben Hutchings a54c09f109 Fix pycodestyle "line break after binary operator" warnings 2018-12-28 15:35:38 +00:00
Ben Hutchings af0098b10a 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.
2018-10-01 21:41:23 +01:00
Ben Hutchings da95316282 Fix parsing of WHENCE file listing multiple binary files in a group
svn path=/dists/sid/linux-2.6/; revision=18934
2012-04-16 05:00:41 +00:00
Bastian Blank 9863acaddd debian/lib/python: PEP8 and other style fixes.
svn path=/dists/trunk/linux-2.6/; revision=18488
2012-01-11 16:52:29 +00:00
Ben Hutchings f838ecc2de Update firmware WHENCE file parsing
All File fields now describe just one file, which may be followed by
other related fields.  Never flush the file details immediately.

For some File fields, there are now multiple following Source fields.
Collect them in a list.

svn path=/dists/trunk/linux-2.6/; revision=18432
2011-12-29 18:28:04 +00:00
Ben Hutchings 1be2b34d3c Add Python module debian_linux.firmware based on script in firmware-nonfree
svn path=/dists/trunk/linux-2.6/; revision=17029
2011-03-09 03:22:59 +00:00