mirror of
https://github.com/hyugogirubato/cbz.git
synced 2026-09-26 21:41:03 +00:00
import fix
This commit is contained in:
+2
-2
@@ -1,8 +1,8 @@
|
|||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
import io
|
|
||||||
import json
|
import json
|
||||||
import zipfile
|
import zipfile
|
||||||
|
from io import BytesIO
|
||||||
from typing import Union
|
from typing import Union
|
||||||
|
|
||||||
import xmltodict
|
import xmltodict
|
||||||
@@ -109,7 +109,7 @@ class ComicInfo:
|
|||||||
return info
|
return info
|
||||||
|
|
||||||
def pack(self) -> bytes:
|
def pack(self) -> bytes:
|
||||||
zip_buffer = io.BytesIO()
|
zip_buffer = BytesIO()
|
||||||
with zipfile.ZipFile(zip_buffer, 'w', zipfile.ZIP_STORED) as zip_file:
|
with zipfile.ZipFile(zip_buffer, 'w', zipfile.ZIP_STORED) as zip_file:
|
||||||
zip_file.writestr(
|
zip_file.writestr(
|
||||||
xml_name,
|
xml_name,
|
||||||
|
|||||||
Reference in New Issue
Block a user