[Mailman-Users] getting python errorss with check_perms
Stephen J. Turnbull
stephen at xemacs.org
Wed Feb 6 04:33:25 CET 2008
Rob Tanner writes:
> File "bin/check_perms", line 216, in checkarchives
> print _("""\
> NameError: global name '_' is not defined
This is the conventional equivalent to GNU gettext used by most Python
programs. Find the definition of '_' which will either look like
def _(x):
# code here
or like
_ = gettext
(or some other name that looks like it might be a function that
translates an English string into some other language). Then replace
it with
def _(x):
return x
and win (unless you really want to see the messages in a language
other than the original, which is almost certainly English<wink>).
More information about the Mailman-Users
mailing list