pyquoks 1.0.2__tar.gz → 1.1.0__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.
- {pyquoks-1.0.2 → pyquoks-1.1.0}/PKG-INFO +1 -1
- {pyquoks-1.0.2 → pyquoks-1.1.0}/setup.cfg +1 -1
- {pyquoks-1.0.2 → pyquoks-1.1.0}/src/pyquoks/data.py +6 -3
- {pyquoks-1.0.2 → pyquoks-1.1.0}/src/pyquoks.egg-info/PKG-INFO +1 -1
- {pyquoks-1.0.2 → pyquoks-1.1.0}/LICENSE +0 -0
- {pyquoks-1.0.2 → pyquoks-1.1.0}/README.md +0 -0
- {pyquoks-1.0.2 → pyquoks-1.1.0}/pyproject.toml +0 -0
- {pyquoks-1.0.2 → pyquoks-1.1.0}/requirements.txt +0 -0
- {pyquoks-1.0.2 → pyquoks-1.1.0}/src/pyquoks/__init__.py +0 -0
- {pyquoks-1.0.2 → pyquoks-1.1.0}/src/pyquoks/models.py +0 -0
- {pyquoks-1.0.2 → pyquoks-1.1.0}/src/pyquoks/utils.py +0 -0
- {pyquoks-1.0.2 → pyquoks-1.1.0}/src/pyquoks.egg-info/SOURCES.txt +0 -0
- {pyquoks-1.0.2 → pyquoks-1.1.0}/src/pyquoks.egg-info/dependency_links.txt +0 -0
- {pyquoks-1.0.2 → pyquoks-1.1.0}/src/pyquoks.egg-info/requires.txt +0 -0
- {pyquoks-1.0.2 → pyquoks-1.1.0}/src/pyquoks.egg-info/top_level.txt +0 -0
|
@@ -12,7 +12,7 @@ class IDataProvider:
|
|
|
12
12
|
def __init__(self) -> None:
|
|
13
13
|
for k, v in self._DATA_VALUES.items():
|
|
14
14
|
try:
|
|
15
|
-
with open(self._PATH.format(k), "rb") as file:
|
|
15
|
+
with open(self._PATH.format(k), "rb", encoding="utf-8") as file:
|
|
16
16
|
setattr(self, k, v(json_data=json.loads(file.read())))
|
|
17
17
|
except:
|
|
18
18
|
setattr(self, k, None)
|
|
@@ -36,7 +36,7 @@ class IConfigProvider:
|
|
|
36
36
|
setattr(self, k, self._config.get(self._SECTION, k))
|
|
37
37
|
except:
|
|
38
38
|
self._config.set(self._SECTION, k, v.__name__)
|
|
39
|
-
with open(utils.get_path("config.ini"), "w") as file:
|
|
39
|
+
with open(utils.get_path("config.ini"), "w", encoding="utf-8") as file:
|
|
40
40
|
self._config.write(fp=file)
|
|
41
41
|
for k, v in self._CONFIG_VALUES.items():
|
|
42
42
|
try:
|
|
@@ -96,7 +96,7 @@ class IAssetsProvider:
|
|
|
96
96
|
|
|
97
97
|
@staticmethod
|
|
98
98
|
def file_image(path: str) -> PIL.Image.Image:
|
|
99
|
-
with open(path, "rb") as file:
|
|
99
|
+
with open(path, "rb", encoding="utf-8") as file:
|
|
100
100
|
return PIL.Image.open(io.BytesIO(file.read()))
|
|
101
101
|
|
|
102
102
|
@staticmethod
|
|
@@ -120,6 +120,9 @@ class IAssetsProvider:
|
|
|
120
120
|
|
|
121
121
|
|
|
122
122
|
class IStringsProvider:
|
|
123
|
+
class IStrings:
|
|
124
|
+
pass
|
|
125
|
+
|
|
123
126
|
_STRINGS_OBJECTS: dict[str, type]
|
|
124
127
|
|
|
125
128
|
def __init__(self):
|
|
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
|
|
File without changes
|