opnsense-ports/deskutils/calibre/files/patch-src_calibre_ebooks_chardet.py
Franco Fichtner 8d0896b93d */*: sync with upstream
Taken from: FreeBSD
2023-12-19 09:56:16 +01:00

11 lines
484 B
Python

--- src/calibre/ebooks/chardet.py.orig 2023-12-15 00:57:56 UTC
+++ src/calibre/ebooks/chardet.py
@@ -111,7 +111,7 @@ def detect(bytestring):
from calibre_extensions.uchardet import detect as implementation
except ImportError:
# People running from source without updated binaries
- from cchardet import detect as cdi
+ from charset_normalizer import detect as cdi
def implementation(x):
return cdi(x).get('encoding') or ''