Skip to content

Commit

Permalink
Merge 55a2a3b into 3cb010e
Browse files Browse the repository at this point in the history
  • Loading branch information
515k4 committed Nov 14, 2021
2 parents 3cb010e + 55a2a3b commit d11d8b9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion autoload/black.vim
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,13 @@ import collections
import os
import sys
import vim
from distutils.util import strtobool

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

class Flag(collections.namedtuple("FlagBase", "name, cast")):
@property
Expand Down

0 comments on commit d11d8b9

Please sign in to comment.