Skip to content

Commit

Permalink
chore: 修复 stderr 的编码
Browse files Browse the repository at this point in the history
  • Loading branch information
Blinue committed Oct 11, 2023
1 parent 75d431d commit 6e523ed
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions publish.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

# 不知为何在 Github Actions 中运行时默认编码为 ANSI,而且每次 print 都刷新流才能正常显示
sys.stdout.reconfigure(encoding='utf-8')
sys.stderr.reconfigure(encoding='utf-8')

#####################################################################
#
Expand Down

0 comments on commit 6e523ed

Please sign in to comment.