Commit Graph

13 Commits

Author SHA1 Message Date
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
Bastian Blank 929894f687 * debian/bin/genorig.py, debian/lib/python/debian_linux/abi.py,
debian/lib/python/debian_linux/debian.py,
  debian/lib/python/debian_linux/patches.py,
  - Support Python 3.
  - Use six if necessary.
* debian/templates/control.main.in, debian/templates/control.source.in:
  Depend on python-six.

svn path=/dists/trunk/linux/; revision=20946
2014-01-01 22:14:11 +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 2c6587bd9e debian_linux.abi: Consider symbols equal regardless of the module they are in
svn path=/dists/sid/linux-2.6/; revision=15883
2010-06-18 03:21:47 +00:00
Bastian Blank 9e6796a8c6 * debian/bin/buildcheck.py: Rewrite complete symbol check.
* debian/lib/python/debian_linux/abi.py: Cleanup.

svn path=/dists/trunk/linux-2.6/; revision=13956
2009-07-17 14:01:24 +00:00
Maximilian Attems f7c50a1460 Revert "debian/bin, debian/lib: Infrastructure was declared irrelevant, drop it."
as announced revert trunk sabotage

This reverts commit ccf3463f401b082e89a76d3475eff5b30c05622a.

svn path=/dists/trunk/linux-2.6/; revision=11215
2008-05-01 07:54:28 +00:00
Bastian Blank fb5a6dc08c debian/bin, debian/lib: Infrastructure was declared irrelevant, drop it.
svn path=/dists/trunk/linux-2.6/; revision=11213
2008-04-27 06:26:15 +00:00
Bastian Blank c272714659 * debian/bin/abicheck.py: Always report all informations from a symbol.
* debian/lib/python/debian_linux/abi.py: Update.

svn path=/dists/trunk/linux-2.6/; revision=7952
2006-12-08 17:32:21 +00:00
Bastian Blank e3afc0557a debian/bin/abicheck.py, debian/bin/abiupdate.py,
debian/lib/python/debian_linux/abi.py: Support updated version description.

svn path=/dists/trunk/linux-2.6/; revision=7703
2006-11-06 13:23:55 +00:00
Bastian Blank 803fd7203d debian/lib/python/debian_linux/abi.py: Support new format of symbol files.
svn path=/dists/trunk/linux-2.6/; revision=7273
2006-08-29 15:23:09 +00:00
Bastian Blank 52102e6544 debian/bin/abicheck.py, debian/lib/python/debian_linux/abi.py:
Remove own type of abi files.

svn path=/dists/trunk/linux-2.6/; revision=6994
2006-07-13 10:53:58 +00:00
Bastian Blank 17f8dd34c1 debian/lib/python/debian_linux/abi.py: Remove svn:executable property.
svn path=/dists/trunk/linux-2.6/; revision=6878
2006-06-24 12:02:53 +00:00
Bastian Blank 9b41ace1c5 Merge /dists/sid/linux-2.6.
svn path=/dists/trunk/linux-2.6/; revision=6708
2006-05-26 12:06:07 +00:00