Skip to content

Commit 69d8012

Browse files
jakubvalentadakra
authored andcommitted
Support Black 20
Use the option --target-version insteead --py36, which was removed in Black 20.8b0. The option --target-version was added in Black 19.3b0, so blacken now requires at least this version of Black. See psf/black#1236
1 parent 784da60 commit 69d8012

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

blacken.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ Return black process the exit code."
112112
('fill fill-column)
113113
(t blacken-line-length)))))
114114
(when blacken-allow-py36
115-
(list "--py36"))
115+
(list "--target-version" "py36"))
116116
(when blacken-fast-unsafe
117117
(list "--fast"))
118118
(when blacken-skip-string-normalization

0 commit comments

Comments
 (0)