Skip to content

Commit

Permalink
Call the _ method from i18n.py
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jkonecny12 authored and clumens committed Oct 13, 2017
1 parent c9c3f0f commit 453391e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pykickstart/commands/reqpart.py
Expand Up @@ -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
Expand Down

0 comments on commit 453391e

Please sign in to comment.