Re: [PATCH pykickstart] Remove rhpl from tests.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> diff --git a/tests/baseclass.py b/tests/baseclass.py
> index 3281f13..7f2f3dc 100644
> --- a/tests/baseclass.py
> +++ b/tests/baseclass.py
> @@ -9,7 +9,9 @@ import re
>  
>  from pykickstart.version import versionMap, returnClassForVersion
>  from pykickstart.errors import *
> -from rhpl.translate import _
> +import gettext
> +gettext.textdomain("pykickstart")
> +_ = lambda x: gettext.ldgettext("pykickstart", x)
>  
>  # Base class for any test case
>  class CommandTest(unittest.TestCase):

Looks fine.

- Chris

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux