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