Improve debug code
This commit is contained in:
@@ -93,12 +93,12 @@ def main() -> None:
|
|||||||
|
|
||||||
# TODO remove this encoding stuff
|
# TODO remove this encoding stuff
|
||||||
import locale
|
import locale
|
||||||
print(sys.stdout.encoding)
|
print('sys.stdout.encoding', sys.stdout.encoding)
|
||||||
print(sys.stdout.isatty())
|
print('sys.stdout.isatty()', sys.stdout.isatty())
|
||||||
print(locale.getpreferredencoding())
|
print('locale.getpreferredencoding()', locale.getpreferredencoding())
|
||||||
print(sys.getfilesystemencoding())
|
print('sys.getfilesystemencoding()', sys.getfilesystemencoding())
|
||||||
print(os.environ["PYTHONIOENCODING"])
|
print('os.environ["PYTHONIOENCODING"]', os.environ.get("PYTHONIOENCODING"))
|
||||||
print(chr(246), chr(9786), chr(9787))
|
print('chr(246), chr(9786), chr(9787)', chr(246), chr(9786), chr(9787))
|
||||||
# TODO end
|
# TODO end
|
||||||
|
|
||||||
detect_obsolete_options()
|
detect_obsolete_options()
|
||||||
|
|||||||
Reference in New Issue
Block a user