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>).

------------------------------------------------------
Mailman-Users mailing list
[email protected]
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&amp;file=faq01.027.htp

Reply via email to