Skip to content

Commit

Permalink
Fix strtobool function
Browse files Browse the repository at this point in the history
  • Loading branch information
defntvdm committed Apr 21, 2022
1 parent 7f7673d commit bff75fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions autoload/black.vim
Expand Up @@ -5,9 +5,9 @@ import sys
import vim

def strtobool(text):
if text.lower() in ['y', 'yes', 't', 'true' 'on', '1']:
if text.lower() in ['y', 'yes', 't', 'true', 'on', '1']:
return True
if text.lower() in ['n', 'no', 'f', 'false' 'off', '0']:
if text.lower() in ['n', 'no', 'f', 'false', 'off', '0']:
return False
raise ValueError(f"{text} is not convertable to boolean")

Expand Down

0 comments on commit bff75fe

Please sign in to comment.