DeDRM ion: Clean out errorneous whitespace and UTF8 definition from python 2 times

This commit is contained in:
Martin Rys 2024-10-27 22:56:15 +01:00 committed by noDRM
parent 3373d93874
commit 195ea69537

View File

@ -1,24 +1,17 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
# -*- coding: utf-8 -*- """ion.py: Decrypt Kindle KFX files.
# ion.py Revision history:
# Copyright © 2013-2020 Apprentice Harper et al. Pascal implementation by lulzkabulz.
BinaryIon.pas + DrmIon.pas + IonSymbols.pas
1.0 - Python translation by apprenticenaomi.
1.1 - DeDRM integration by anon.
1.2 - Added pylzma import fallback
1.3 - Fixed lzma support for calibre 4.6+
2.0 - VoucherEnvelope v2/v3 support by apprenticesakuya.
3.0 - Added Python 3 compatibility for calibre 5.0
__license__ = 'GPL v3' Copyright © 2013-2020 Apprentice Harper et al.
__version__ = '3.0'
# Revision history:
# Pascal implementation by lulzkabulz.
# BinaryIon.pas + DrmIon.pas + IonSymbols.pas
# 1.0 - Python translation by apprenticenaomi.
# 1.1 - DeDRM integration by anon.
# 1.2 - Added pylzma import fallback
# 1.3 - Fixed lzma support for calibre 4.6+
# 2.0 - VoucherEnvelope v2/v3 support by apprenticesakuya.
# 3.0 - Added Python 3 compatibility for calibre 5.0
"""
Decrypt Kindle KFX files.
""" """
import collections import collections
@ -30,6 +23,9 @@ import struct
from io import BytesIO from io import BytesIO
__license__ = 'GPL v3'
__version__ = '3.0'
#@@CALIBRE_COMPAT_CODE@@ #@@CALIBRE_COMPAT_CODE@@