X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/649c3c7a0515be00c51bbf9c8311adb79fea7f58..7145fa325c10914187d38fb157b6e2c3391f3ee0:/black.py diff --git a/black.py b/black.py index d4b3985..53d31e2 100644 --- a/black.py +++ b/black.py @@ -625,7 +625,7 @@ def format_str( `line_length` determines how many characters per line are allowed. """ - src_node = lib2to3_parse(src_contents) + src_node = lib2to3_parse(src_contents.lstrip()) dst_contents = "" future_imports = get_future_imports(src_node) is_pyi = bool(mode & FileMode.PYI)