From 3c212be5a8272be3fc1f6361faea8e257ea9df22 Mon Sep 17 00:00:00 2001 From: WeberJulian Date: Tue, 22 Sep 2020 17:36:05 +0200 Subject: [PATCH] fix: fixing the RenamingUnpickler fix --- TTS/utils/io.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/TTS/utils/io.py b/TTS/utils/io.py index d7acaa5d..074a730e 100644 --- a/TTS/utils/io.py +++ b/TTS/utils/io.py @@ -6,9 +6,7 @@ import pickle as pickle_tts class RenamingUnpickler(pickle_tts.Unpickler): """Overload default pickler to solve module renaming problem""" def find_class(self, module, name): - if 'TTS' in module: - module = module.replace('TTS', 'TTS') - return super().find_class(module, name) + return super().find_class(module.replace('mozilla_voice_tts', 'TTS'), name) class AttrDict(dict):