Re: [PATCH] scripts/checkkconfig.py: find unused Kconfig parameters

From: Michal Marek
Date: Thu Oct 24 2013 - 05:40:00 EST


On 24.10.2013 07:23, Michael Opdenacker wrote:
> + count = subprocess.check_output('git grep ' + param + '| grep -v defconfig | wc -l', shell=True)

Python 2.6 does not have subprocess.check_output:

$ ./scripts/checkkconfig.py
INFO: processing Kconfig files...
INFO: checking kconfig parameter 1 / 13706 (0 %)
Traceback (most recent call last):
File "./scripts/checkkconfig.py", line 127, in <module>
count_param(param)
File "./scripts/checkkconfig.py", line 67, in count_param
count = subprocess.check_output('git grep ' + param + '| grep -v
defconfig | wc -l', shell=True)
AttributeError: 'module' object has no attribute 'check_output'

Michal
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/