some refactoring

This commit is contained in:
Miroslav Stampar
2011-10-21 21:12:48 +00:00
parent 9356f8005c
commit 7a3096ce25
2 changed files with 10 additions and 3 deletions

View File

@@ -2830,6 +2830,12 @@ def isNoneValue(value):
else:
return value is None
def isNullValue(value):
"""
Returns whether the value contains explicit 'NULL' value
"""
return isinstance(value,basestring) and value.upper() == "NULL"
def expandMnemonics(mnemonics, parser, args):
"""
Expand mnemonic options