Skip to content

Instantly share code, notes, and snippets.

@KunihikoKido
Last active December 20, 2015 12:09
Show Gist options
  • Save KunihikoKido/6129325 to your computer and use it in GitHub Desktop.
Save KunihikoKido/6129325 to your computer and use it in GitHub Desktop.
Handle Bool!
def handle_bool(value):
if value in [True, 'true', 'True', 'TRUE', 1]:
return True
return False
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment