From 453391e046decc3905e76292292c0c3b24ac401d Mon Sep 17 00:00:00 2001 From: Jiri Konecny Date: Fri, 13 Oct 2017 12:16:28 +0200 Subject: [PATCH] Call the _ method from i18n.py Gettext can sometimes return bytes which needs to be converted and this is handled in the i18n.py source file. This should fix broken Rawhide builds. --- pykickstart/commands/reqpart.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pykickstart/commands/reqpart.py b/pykickstart/commands/reqpart.py index 76bfd71a..0d69699a 100644 --- a/pykickstart/commands/reqpart.py +++ b/pykickstart/commands/reqpart.py @@ -22,9 +22,7 @@ from pykickstart.errors import KickstartParseError, formatErrorMsg from pykickstart.options import KSOptionParser -import gettext -# typeshed is missing the stub for ldgettext -_ = lambda x: gettext.ldgettext("pykickstart", x) +from pykickstart.i18n import _ class F23_ReqPart(KickstartCommand): removedKeywords = KickstartCommand.removedKeywords