mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 00:28:20 +08:00
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user