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

Re: [PATCH pykickstart] Remove rhpl from tests.



> 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


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