Make GenericSpecFunctions.ne_string and GenericSpecFunctions.ne_list return bool
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user