mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Merge pull request #1963 from jmchilton/str_comp
Do not use "is not" to compare strings.
This commit is contained in:
@@ -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 )
|
||||
|
||||
|
||||
Reference in New Issue
Block a user