Skip to content

Commit e6be5fa

Browse files
committed
Minor is_string reformat
1 parent 4996c3d commit e6be5fa

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

check_tools/config-update.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,10 @@ def is_string(line):
5252
line - string to scan
5353
5454
Returns:
55-
True if the string contains [a-z], else False
55+
Match object if the string contains [a-z], else None
5656
"""
5757
regexp = re.compile(r'[a-z]', re.IGNORECASE)
58-
if regexp.search(line):
59-
return True
60-
else:
61-
return False
58+
return regexp.search(line)
6259

6360
def main(file):
6461
file_h = open(file, 'r+')

0 commit comments

Comments
 (0)