Skip to content

Commit 0e1abf3

Browse files
committed
Add utf-8 encoding
Signed-off-by: Tushar Goel <tushar.goel.dav@gmail.com>
1 parent 1fe9ffd commit 0e1abf3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/python_inspector/resolve_cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -416,9 +416,9 @@ def resolver_api(
416416

417417
if not ctx:
418418
if json_output:
419-
json_output = open(json_output, mode="w", encoding="utf-8")
419+
json_output = open(file=json_output, mode="w", encoding="utf-8")
420420
if pdt_output:
421-
pdt_output = open(pdt_output, mode="w", encoding="utf-8")
421+
pdt_output = open(file=pdt_output, mode="w", encoding="utf-8")
422422

423423
if json_output:
424424
write_output(

0 commit comments

Comments
 (0)