Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 13f2afb

Browse files
committed
minor fix
1 parent 6f5ef23 commit 13f2afb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/core/common.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2727,8 +2727,8 @@ def intersect(valueA, valueB, lowerCase=False):
27272727
valueB = arrayizeValue(valueB)
27282728

27292729
if lowerCase:
2730-
valueA = (val.lower() if isinstance(val, basestring) else val for val in valueA)
2731-
valueB = (val.lower() if isinstance(val, basestring) else val for val in valueB)
2730+
valueA = [val.lower() if isinstance(val, basestring) else val for val in valueA]
2731+
valueB = [val.lower() if isinstance(val, basestring) else val for val in valueB]
27322732

27332733
retVal = [val for val in valueA if val in valueB]
27342734

0 commit comments

Comments
 (0)