[PATCH] Don't reimport gettext



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]