Merge pull request #1963 from jmchilton/str_comp

Do not use "is not" to compare strings.
This commit is contained in:
Dannon Baker
2016-03-21 13:21:56 -04:00
+1 -1
View File
@@ -187,7 +187,7 @@ class ToolParameter( object, Dictifiable ):
return value
def validate( self, value, trans=None ):
if value is not '' or not self.optional:
if value != '' or not self.optional:
for validator in self.validators:
validator.validate( value, trans )