diff options
author | Alexandru DAMIAN <alexandru.damian@intel.com> | 2015-07-30 19:25:09 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-08-01 11:26:13 +0100 |
commit | 1640a65091c56eeed0f6bb1020fd156cdc279a6e (patch) | |
tree | ee36a0a10c1fea4d5e10e645b9077f80d6d67567 /bitbake/lib/toaster/contrib/tts/scratchpad.py | |
parent | 160d610604fff0b119de2b70a9da8a5f73d93715 (diff) | |
download | poky-1640a65091c56eeed0f6bb1020fd156cdc279a6e.tar.gz |
bitbake: toaster: tts: fix pylint warnings
This patch brings TTS to the pylint coding standards.
Pylint was run with some disables:
disable=logging-too-many-args,line-too-long,missing-docstring
and achieved
Your code has been rated at 10.00/10
There are no functional changes.
(Bitbake rev: 2b40b412ff6a7e3fd4cc32707bd3cd713bc09ddb)
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/contrib/tts/scratchpad.py')
-rw-r--r-- | bitbake/lib/toaster/contrib/tts/scratchpad.py | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/bitbake/lib/toaster/contrib/tts/scratchpad.py b/bitbake/lib/toaster/contrib/tts/scratchpad.py deleted file mode 100644 index b276fb598b..0000000000 --- a/bitbake/lib/toaster/contrib/tts/scratchpad.py +++ /dev/null | |||
@@ -1,20 +0,0 @@ | |||
1 | import config | ||
2 | |||
3 | # Code testing section | ||
4 | def _code_test(): | ||
5 | def callback_writeeventlog(opt, opt_str, value, parser): | ||
6 | if len(parser.rargs) < 1 or parser.rargs[0].startswith("-"): | ||
7 | value = "" | ||
8 | else: | ||
9 | value = parser.rargs[0] | ||
10 | del parser.rargs[0] | ||
11 | |||
12 | setattr(parser.values, opt.dest, value) | ||
13 | |||
14 | parser = optparse.OptionParser() | ||
15 | parser.add_option("-w", "--write-log", help = "Writes the event log of the build to a bitbake event json file.", | ||
16 | action = "callback", callback=callback_writeeventlog, dest = "writeeventlog") | ||
17 | |||
18 | options, targets = parser.parse_args(sys.argv) | ||
19 | |||
20 | print (options, targets) | ||