[sos-devel] [PATCH][git] Import internationalisation functions in policies

Jesse Jaggars jjaggars at redhat.com
Mon Nov 21 15:06:34 UTC 2011


Hey Bryn,

Maybe you snagged a stale copy? The current plugin_refactoring branch (an unfortunate name at this point) has that import already:

https://github.com/sosreport/sosreport/blob/plugin_refactoring/sos/policies/__init__.py

Thanks,
Jesse

----- Original Message -----
Hi Folks,

Was playing around with git HEAD at the weekend and ran into a missing
definition for _() in the policy classes.

Cheers,
Bryn.

commit becd135ba3bf6a658b0310aa72e1f9d5b4994471
Author: Bryn M. Reeves <bmr at redhat.com>
Date:   Fri Nov 18 16:18:21 2011 +0000

    Import internationalisation from sos in policies/__init__.py

diff --git a/sos/policies/__init__.py b/sos/policies/__init__.py
index 0415b05..fc97637 100644
--- a/sos/policies/__init__.py
+++ b/sos/policies/__init__.py
@@ -2,6 +2,7 @@ import os
 import platform
 import time

+from sos import _sos as _
 from sos.utilities import ImporterHelper, import_module
 from sos.plugins import IndependentPlugin

@@ -60,7 +61,7 @@ and it will be considered confidential information.
 This process may take a while to complete.
 No changes will be made to your system.

-"""
+""")

     distro = ""

_______________________________________________
Sos-devel mailing list
Sos-devel at redhat.com
https://www.redhat.com/mailman/listinfo/sos-devel




More information about the sos-devel mailing list