Skip to content

Instantly share code, notes, and snippets.

@SteveGilham
Created April 14, 2015 19:54
Show Gist options
  • Select an option

  • Save SteveGilham/6f68ae11917c722fbb53 to your computer and use it in GitHub Desktop.

Select an option

Save SteveGilham/6f68ae11917c722fbb53 to your computer and use it in GitHub Desktop.
def isValid(self):
if self.name in (True, False, None):
return False
#if self.handlerClass in (True, False, None):
# return False
#return True
x = self.handlerClass
return (x != None) and (x != True) and (x != False)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment