Skip to content

Commit 6ee650a

Browse files
authored
Fix TypeError: decode_bytes() missing required argument 'mode' (pos 2) (#253)
1 parent 04dca7f commit 6ee650a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

blackdoc/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def format_and_overwrite(path, mode):
5858
def format_and_check(path, mode, diff=False, color=False):
5959
try:
6060
with open(path, mode="rb") as f:
61-
content, _, _ = black.decode_bytes(f.read())
61+
content, _, _ = decode_bytes(f.read())
6262

6363
lines = content.split("\n")
6464

0 commit comments

Comments
 (0)