Make GenericSpecFunctions.ne_string and GenericSpecFunctions.ne_list return bool

This commit is contained in:
Fabio Erculiani
2013-03-23 07:22:17 +00:00
parent 6b74b21453
commit 5be5b58729
+6 -2
View File
@@ -26,10 +26,14 @@ import molecule.utils
class GenericSpecFunctions(object):
def ne_string(self, x):
return x.strip()
if x:
return True
return False
def ne_list(self, x):
return x
if x:
return True
return False
def valid_integer(self, x):
try: