dosage/scripts/scriptutil.py

10 lines
191 B
Python
Raw Normal View History

2012-11-29 05:46:58 +00:00
# Copyright (C) 2012 Bastian Kleineidam
def contains_case_insensitive(adict, akey):
for key in adict:
if key.lower() == akey.lower():
return True
return False