i am a python GOD

svn path=/trunk/kernel/source/linux-2.6-2.6.12/; revision=3533
This commit is contained in:
Andres Salomon 2005-07-16 03:31:36 +00:00
parent d9d8757e9a
commit c6fff45fc2
1 changed files with 3 additions and 4 deletions

7
debian/bin/split.py vendored
View File

@ -7,15 +7,14 @@
# file is parsed to remove the common config options found in
# config, with the results written to config.*.stub.
#
import os, string, sys
import os, string, sys, re
common = []
conffiles = []
def is_option(line):
result = (string.count(line, '#') > 0)
result = result or (len(string.strip(line)) == 0)
return not result
result = (len(string.strip(line)) != 0) and (re.match('^#*\s*CONFIG_\w+[\s=]', line))
return result
def is_not_common(line):
return (line not in common)