Re: [PATCH] Don't reimport gettext



2009/2/26 Vincent Legoll <vincent legoll gmail com>:
> Pylint reports duplicated imports of gettext,
> use the previously imported one to set "_"

This looks slightly strange to me. There's only one usage of _() in
that file, so why not just use the full gettext.gettext() form for
that case and drop the _() alias from this file altogether?

Kai


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