From cbe026cfe9d98aad071584facd25f6348ee9588e Mon Sep 17 00:00:00 2001 From: Yomguithereal Date: Sat, 19 Dec 2020 15:05:38 +0100 Subject: [PATCH] Rearranging idna --- hooks/hook-minet.cli.py | 4 +++- minet/utils.py | 3 --- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/hooks/hook-minet.cli.py b/hooks/hook-minet.cli.py index 4529ca0d55..3cb64946d7 100644 --- a/hooks/hook-minet.cli.py +++ b/hooks/hook-minet.cli.py @@ -6,7 +6,9 @@ from os.path import dirname, join from PyInstaller.utils.hooks import collect_submodules -hiddenimports = [] +hiddenimports = [ + 'encodings.idna' +] for p in iglob('minet/cli/**/*.py', recursive=True): if '__main__' in p: diff --git a/minet/utils.py b/minet/utils.py index 6fea388daf..a8a005dbf1 100644 --- a/minet/utils.py +++ b/minet/utils.py @@ -40,9 +40,6 @@ DEFAULT_URLLIB3_TIMEOUT ) -# Fix for pyinstaller. Do not remove! -import encodings.idna - mimetypes.init() # Handy regexes