koro 1.1.4__py3-none-any.whl → 1.1.6__py3-none-any.whl
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.
- koro/file/bin.py +2 -2
- koro/item/group.py +2 -1
- {koro-1.1.4.dist-info → koro-1.1.6.dist-info}/METADATA +1 -1
- {koro-1.1.4.dist-info → koro-1.1.6.dist-info}/RECORD +7 -7
- {koro-1.1.4.dist-info → koro-1.1.6.dist-info}/WHEEL +1 -1
- {koro-1.1.4.dist-info → koro-1.1.6.dist-info}/LICENSE +0 -0
- {koro-1.1.4.dist-info → koro-1.1.6.dist-info}/top_level.txt +0 -0
koro/file/bin.py
CHANGED
@@ -117,7 +117,7 @@ class BinLevel(Location, Level):
|
|
117
117
|
)
|
118
118
|
data_index += test_length
|
119
119
|
output.extend(chunk)
|
120
|
-
return output + b"\x00" * (len(output) & 1)
|
120
|
+
return bytes(output + b"\x00" * (len(output) & 1))
|
121
121
|
|
122
122
|
@staticmethod
|
123
123
|
def decompress(data: bytes, /) -> bytes:
|
@@ -151,7 +151,7 @@ class BinLevel(Location, Level):
|
|
151
151
|
buffer_index = buffer_index + 1 & 1023
|
152
152
|
result.extend(handle)
|
153
153
|
flags >>= 1
|
154
|
-
return result.replace(b"<EDITUSER> 3 </EDITUSER>", b"<EDITUSER> 2 </EDITUSER>")
|
154
|
+
return bytes(result.replace(b"<EDITUSER> 3 </EDITUSER>", b"<EDITUSER> 2 </EDITUSER>"))
|
155
155
|
|
156
156
|
def delete(self) -> None:
|
157
157
|
try:
|
koro/item/group.py
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
from abc import ABC
|
2
2
|
from collections.abc import Iterable, Sequence
|
3
|
+
from itertools import chain, repeat
|
3
4
|
from typing import Final, Generic, Optional, TypeVar
|
4
5
|
|
5
6
|
from .level import Level, LevelNotFoundError
|
@@ -37,7 +38,7 @@ class Group(ABC, Generic[_L], Sequence[_L]):
|
|
37
38
|
|
38
39
|
def write(self, new_content: Iterable[Optional[bytes]], /) -> None:
|
39
40
|
"""Replace the contents of this Group with the specified new content. None values will empty the slot they correspond to."""
|
40
|
-
for src, dest in zip(new_content,
|
41
|
+
for src, dest in zip(chain(new_content, repeat(None)), self):
|
41
42
|
if src is None:
|
42
43
|
try:
|
43
44
|
dest.delete()
|
@@ -1,15 +1,15 @@
|
|
1
1
|
koro/__init__.py,sha256=5K5KQt899Y9FEEce0zLbKgi7lMlUIVR5tNN5xkgM-DE,201
|
2
2
|
koro/file/__init__.py,sha256=1uei7uDZD9P05n-HC5SKVSNlvKHXjYqV1GRAjt1lG_w,974
|
3
|
-
koro/file/bin.py,sha256=
|
3
|
+
koro/file/bin.py,sha256=bW6Wm1u1sdDC457OUyuthNL3n7CMY-YAZx-8XwzOWvw,7590
|
4
4
|
koro/file/dir.py,sha256=pnMQJAQRlzcm_MC14goDeKlQ3llKhywM1FdADHM8xds,6632
|
5
5
|
koro/file/lvl.py,sha256=lrVpQyZFj1JlVPYx-OkcCne8VdjHCWQIuOX0pls1Dto,1130
|
6
6
|
koro/file/zip.py,sha256=qqyr-FmrgEj4xHuvhpCw_QMcieqIXrKn4xCYpITNAvQ,7435
|
7
7
|
koro/item/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
8
|
-
koro/item/group.py,sha256=
|
8
|
+
koro/item/group.py,sha256=bvKnQzXULy3dw-YA5Hn7E9ErbgZlMGxR-K2ucjYNnaw,1583
|
9
9
|
koro/item/level.py,sha256=KXiOK3RGC72WK4lduf3RO9Cs1zXaJRk0EfJCDndA4bs,3068
|
10
10
|
koro/item/save.py,sha256=LUV79vW3gY__jVVVG1kcYW-wzsGCRlYq126nulbT37Y,607
|
11
|
-
koro-1.1.
|
12
|
-
koro-1.1.
|
13
|
-
koro-1.1.
|
14
|
-
koro-1.1.
|
15
|
-
koro-1.1.
|
11
|
+
koro-1.1.6.dist-info/LICENSE,sha256=Q2ptU2E48gOsMzhYz_kqVovmJ5d1KzrblLyqD2_-fvY,1235
|
12
|
+
koro-1.1.6.dist-info/METADATA,sha256=C6SlospRWQZyUSD0jPKhDgX6IEflZeAvByp_VNDBgak,628
|
13
|
+
koro-1.1.6.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
|
14
|
+
koro-1.1.6.dist-info/top_level.txt,sha256=Msq6ssMwv56hnBQqwaTdJJkxM7x7BZ-3JfQbkepQAEY,5
|
15
|
+
koro-1.1.6.dist-info/RECORD,,
|
File without changes
|
File without changes
|