From 47cf7e543e9b23dfa6021913343615fe2e0e0a5d Mon Sep 17 00:00:00 2001 From: Saeed Rasooli Date: Tue, 31 Dec 2024 05:48:43 +0330 Subject: [PATCH] fix regression in `glossary_v2.py` effecting deprecated Glossary usage --- pyglossary/glossary_v2.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyglossary/glossary_v2.py b/pyglossary/glossary_v2.py index f84e78e4d..2eb4ae7c3 100644 --- a/pyglossary/glossary_v2.py +++ b/pyglossary/glossary_v2.py @@ -754,7 +754,7 @@ def _read( filename = os.path.abspath(filename) ### - inputArgs = self.detectInputFormat(filename, formatName=formatName) + inputArgs = PluginManager.detectInputFormat(filename, formatName=formatName) origFilename = filename filename, formatName, compression = inputArgs @@ -1203,7 +1203,7 @@ def convertV2(self, args: ConvertArgs) -> str: tm0 = now() - outputFilename, outputFormat, compression = self.detectOutputFormat( + outputFilename, outputFormat, compression = PluginManager.detectOutputFormat( filename=args.outputFilename, formatName=args.outputFormat, inputFilename=args.inputFilename,