chore: Clean up blank lines and enhance code organization

- Removed excessive blank lines from multiple Python scripts and configuration files to improve readability and maintainability.
- Ensured consistent formatting across the project, contributing to a more organized codebase.
- Added new files for testing and analysis, including `test_screenshot_error_handling.py` and `test_screenshot_reuse_optimization.py`, to improve testing coverage and functionality.
This commit is contained in:
Your Name committed 2026-01-01 10:04:32 +08:00
1 parent 7db9864848
commit 478ae69052
85 files changed
+2879 -383

No files matched your search

+9 -3
View File
@@ -9,10 +9,16 @@ from datetime import datetime
if sys.platform == 'win32':
try:
sys.stdout.reconfigure(encoding='utf-8')
# 尝试使用reconfigure方法(Python 3.7+)
reconfigure_func = getattr(sys.stdout, 'reconfigure', None)
if reconfigure_func:
reconfigure_func(encoding='utf-8')
except Exception:
import io
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8', errors='replace')
try:
import io
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8', errors='replace')
except Exception:
pass
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))