Skip to content

Commit 32b0cff

Browse files
committed
Use stderr for consistency
1 parent 3bf9c9d commit 32b0cff

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

setup.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@
1414
exit(1)
1515

1616
if platform.python_implementation() == "PyPy":
17-
print(
18-
"ERROR: Running mypy on PyPy is not supported yet."
19-
"To type-check a PyPy library please use an equivalent CPython version,"
20-
"see https://github.com/mypyc/librt/issues/16 for possible workarounds."
17+
sys.stderr.write(
18+
"ERROR: Running mypy on PyPy is not supported yet.\n"
19+
"To type-check a PyPy library please use an equivalent CPython version,\n"
20+
"see https://github.com/mypyc/librt/issues/16 for possible workarounds.\n"
2121
)
22-
sys.exit(1)
22+
exit(1)
2323

2424
# we'll import stuff from the source tree, let's ensure is on the sys path
2525
sys.path.insert(0, os.path.dirname(os.path.realpath(__file__)))

0 commit comments

Comments
 (0)