summaryrefslogtreecommitdiff
path: root/libmat2/epub.py
diff options
context:
space:
mode:
Diffstat (limited to 'libmat2/epub.py')
-rw-r--r--libmat2/epub.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/libmat2/epub.py b/libmat2/epub.py
index be05562..7613d35 100644
--- a/libmat2/epub.py
+++ b/libmat2/epub.py
@@ -3,7 +3,7 @@ import re
3import uuid 3import uuid
4import zipfile 4import zipfile
5import xml.etree.ElementTree as ET # type: ignore 5import xml.etree.ElementTree as ET # type: ignore
6from typing import Dict, Any 6from typing import Any
7 7
8from . import archive, office 8from . import archive, office
9 9
@@ -37,7 +37,7 @@ class EPUBParser(archive.ZipParser):
37 if member_name.endswith('META-INF/encryption.xml'): 37 if member_name.endswith('META-INF/encryption.xml'):
38 raise ValueError('the file contains encrypted fonts') 38 raise ValueError('the file contains encrypted fonts')
39 39
40 def _specific_get_meta(self, full_path, file_path) -> Dict[str, Any]: 40 def _specific_get_meta(self, full_path, file_path) -> dict[str, Any]:
41 if not file_path.endswith('.opf'): 41 if not file_path.endswith('.opf'):
42 return {} 42 return {}
43 43