[PATCH] Don't reimport gettext
- From: Vincent Legoll <vincent legoll gmail com>
- To: meld-list gnome org
- Subject: [PATCH] Don't reimport gettext
- Date: Thu, 26 Feb 2009 22:24:30 +0100
Pylint reports duplicated imports of gettext,
use the previously imported one to set "_"
--
Vincent Legoll
Index: meld
===================================================================
--- meld (révision 1182)
+++ meld (copie de travail)
@@ -33,7 +33,7 @@
]
import paths
import gettext
-from gettext import gettext as _
+_ = gettext.gettext
gettext.bindtextdomain("meld", paths.locale_dir())
gettext.textdomain("meld")
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]