ezKit 2.0.1__tar.gz → 2.0.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ezKit
3
- Version: 2.0.1
3
+ Version: 2.0.2
4
4
  Summary: Easy Kit
5
5
  Author: septvean
6
6
  Author-email: septvean@gmail.com
@@ -22,7 +22,9 @@ def load_toml_file(file: str) -> dict:
22
22
 
23
23
  logger.info(f"{info} [ start ]")
24
24
 
25
- with open(file, "rb", encoding="utf-8") as _file:
25
+ # 不要加 encoding="utf-8" 参数, 否则会报错:
26
+ # binary mode doesn't take an encoding argument
27
+ with open(file, "rb") as _file:
26
28
  config = tomllib.load(_file)
27
29
 
28
30
  logger.success(f"{info} [ success ]")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ezKit
3
- Version: 2.0.1
3
+ Version: 2.0.2
4
4
  Summary: Easy Kit
5
5
  Author: septvean
6
6
  Author-email: septvean@gmail.com
@@ -4,7 +4,7 @@ from setuptools import find_packages, setup
4
4
 
5
5
  setup(
6
6
  name="ezKit",
7
- version="2.0.1",
7
+ version="2.0.2",
8
8
  author="septvean",
9
9
  author_email="septvean@gmail.com",
10
10
  description="Easy Kit",
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes