2.12.2021, 9:00 - 11:00: Due to updates GitLab may be unavailable for some minutes between 09:00 and 11:00.

Commit 86955185 authored by eckhart's avatar eckhart
Browse files

- removed obsolete compatibility fix for Visual Studio Code

parent 8fdc32e9
......@@ -357,12 +357,12 @@ def sane_parser_name(name) -> bool:
#######################################################################
try:
if sys.stdout.encoding.upper() != "UTF-8":
# make sure that `print()` does not raise an error on
# non-ASCII characters:
sys.stdout = cast(io.TextIOWrapper, codecs.getwriter("utf-8")(cast(
io.BytesIO, cast(io.TextIOWrapper, sys.stdout).detach())))
except AttributeError:
# somebody has already taken care of this !?
pass
# try:
# if sys.stdout.encoding.upper() != "UTF-8":
# # make sure that `print()` does not raise an error on
# # non-ASCII characters:
# sys.stdout = cast(io.TextIOWrapper, codecs.getwriter("utf-8")(cast(
# io.BytesIO, cast(io.TextIOWrapper, sys.stdout).detach())))
# except AttributeError:
# # somebody has already taken care of this !?
# pass
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment