diff options
author | Bastian Blank <waldi@debian.org> | 2012-01-11 17:00:17 +0000 |
---|---|---|
committer | Bastian Blank <waldi@debian.org> | 2012-01-11 17:00:17 +0000 |
commit | a4a27ffb31c2167896c295052851e95ce981881c (patch) | |
tree | f8c7f2597c25745b42b1e54704a2008d427ddf2f /debian/bin/kconfig.py | |
parent | 9863acaddd79af17ac2dfa2b6bbfacaca100f3e6 (diff) | |
download | kernel_replicant_linux-a4a27ffb31c2167896c295052851e95ce981881c.tar.gz kernel_replicant_linux-a4a27ffb31c2167896c295052851e95ce981881c.tar.bz2 kernel_replicant_linux-a4a27ffb31c2167896c295052851e95ce981881c.zip |
debian/bin: PEP8 and other style fixes.
svn path=/dists/trunk/linux-2.6/; revision=18489
Diffstat (limited to 'debian/bin/kconfig.py')
-rwxr-xr-x | debian/bin/kconfig.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/debian/bin/kconfig.py b/debian/bin/kconfig.py index d5df64f1885d..d9a88aa7d280 100755 --- a/debian/bin/kconfig.py +++ b/debian/bin/kconfig.py @@ -7,6 +7,7 @@ import sys from debian_linux.kconfig import * + def merge(output, configs, overrides): kconfig = KconfigFile() for c in configs: @@ -15,6 +16,7 @@ def merge(output, configs, overrides): kconfig.set(key, value) file(output, "w").write(str(kconfig)) + def opt_callback_dict(option, opt, value, parser): match = re.match('^\s*(\S+)=(\S+)\s*$', value) if not match: @@ -23,8 +25,9 @@ def opt_callback_dict(option, opt, value, parser): data = getattr(parser.values, dest) data[match.group(1)] = match.group(2) + if __name__ == '__main__': - parser = optparse.OptionParser(usage = "%prog [OPTION]... FILE...") + parser = optparse.OptionParser(usage="%prog [OPTION]... FILE...") parser.add_option('-o', '--override', action='callback', callback=opt_callback_dict, |