dosage/scripts/scriptutil.py
2012-11-29 06:46:58 +01:00

9 lines
191 B
Python

# Copyright (C) 2012 Bastian Kleineidam
def contains_case_insensitive(adict, akey):
for key in adict:
if key.lower() == akey.lower():
return True
return False