Skip to content

Commit f11fcdf

Browse files
committed
Prevent the tool always outputting as ascii by default
1 parent 17db2ec commit f11fcdf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

qrcode/console_scripts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def raise_error(msg: str) -> NoReturn:
112112
else:
113113
qr.add_data(data, optimize=opts.optimize)
114114

115-
if image_factory is None and (os.isatty(sys.stdout.fileno()) or opts.ascii):
115+
if opts.ascii:
116116
qr.print_ascii(tty=not opts.ascii)
117117
return
118118

0 commit comments

Comments
 (0)