FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian Kernel

 
 
LinkBack Thread Tools
 
Old 11-20-2009, 11:49 AM
Radek Vykydal
 
Default Remove rhpl from tests.

---
tests/baseclass.py | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)

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):
--
1.6.0.6

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 11-20-2009, 01:31 PM
Chris Lumens
 
Default 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

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

Thread Tools




All times are GMT. The time now is 05:42 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org