mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-09 18:39:04 +08:00
parent
e1337158b7
commit
84c2ecc9ea
@ -1,4 +1,3 @@
|
||||
import codecs
|
||||
import datetime
|
||||
import logging
|
||||
import os
|
||||
@ -16,14 +15,6 @@ from rich.style import Style
|
||||
from rich.theme import Theme
|
||||
from rich.traceback import Traceback
|
||||
|
||||
try:
|
||||
if sys.stdout.encoding.lower() != 'utf-8':
|
||||
sys.stdout = codecs.getwriter('utf-8')(sys.stdout.buffer, 'strict')
|
||||
if sys.stderr.encoding.lower() != 'utf-8':
|
||||
sys.stderr = codecs.getwriter('utf-8')(sys.stderr.buffer, 'strict')
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
|
||||
def empty_function(*args, **kwargs):
|
||||
pass
|
||||
|
||||
Loading…
Reference in New Issue
Block a user