Commit Graph

11 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
Ben Hutchings 3d1b880497 debian/bin/kconfig.py: Adjust for compatibility with Python 3
Use open() instead of file().
Use dict.items() instead of .iteritems().
Use collections.OrderedDict.items() instead of .iteritems().
2015-08-30 21:43:02 +01:00
Bastian Blank f1f381b411 debian/lib/python/debian_linux/kconfig.py:
Replace entry classes with version from kconfigeditor2.

svn path=/dists/trunk/linux/; revision=20669
2013-09-23 21:33:24 +00:00
Bastian Blank e962c1ae2b debian/lib/python: Remove SortedDict, use collections.OrderedDict instead.
svn path=/dists/trunk/linux-2.6/; revision=18491
2012-01-11 17:16:00 +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
Bastian Blank 8adf3a084f * debian/bin/kconfig.py: Add option overrides.
* debian/lib/python/debian_linux/kconfig.py:
  Add set method for externaly parsed options.

svn path=/dists/trunk/linux-2.6/; revision=15565
2010-04-27 08:43:41 +00:00
Bastian Blank ec1ca0a0a6 debian/lib/python/debian_linux/kconfig.py: Use sorted dict.
svn path=/dists/trunk/linux-2.6/; revision=13649
2009-05-20 15:12:51 +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 f030ad5dbf debian/bin/kconfig.py, debian/lib/python/debian_linux/kconfig.py: Cleanup.
svn path=/dists/trunk/linux-2.6/; revision=8985
2007-06-17 11:09:00 +00:00
Bastian Blank 1fea7e60e3 debian/lib/python/debian_linux/kconfig.py: Add.
svn path=/dists/trunk/linux-2.6/; revision=7291
2006-09-03 08:10:03 +00:00