#8 pysollib/gamedb.py breaks interactive Python's help

closed-fixed
nobody
None
5
2009-12-03
2009-06-10
firewing1
No

This issue was originally reported by Andy Shevchenko to the Red Hat Bugzilla (https://bugzilla.redhat.com/show_bug.cgi?id=484585) but I wanted to pass on the issue here.

A few files in PySolFC such as gamedb.py break Pyhon's interactive help functions:

help> modules

Please wait a moment while I gather a list of all available modules...

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.5/site.py", line 346, in __call__
return pydoc.help(*args, **kwds)
File "/usr/lib/python2.5/pydoc.py", line 1646, in __call__
self.interact()
File "/usr/lib/python2.5/pydoc.py", line 1664, in interact
self.help(request)
File "/usr/lib/python2.5/pydoc.py", line 1680, in help
elif request == 'modules': self.listmodules()
File "/usr/lib/python2.5/pydoc.py", line 1801, in listmodules
ModuleScanner().run(callback)
File "/usr/lib/python2.5/pydoc.py", line 1852, in run
for importer, modname, ispkg in pkgutil.walk_packages():
File "/usr/lib/python2.5/pkgutil.py", line 125, in walk_packages
for item in walk_packages(path, name+'.', onerror):
File "/usr/lib/python2.5/pkgutil.py", line 110, in walk_packages
__import__(name)
File "/usr/lib/python2.5/site-packages/pysollib/games/__init__.py", line 1,
in <module>
import acesup
File "/usr/lib/python2.5/site-packages/pysollib/games/acesup.py", line 38, in
<module>
from pysollib.gamedb import registerGame, GameInfo, GI
File "/usr/lib/python2.5/site-packages/pysollib/gamedb.py", line 51, in
<module>
class GI:
File "/usr/lib/python2.5/site-packages/pysollib/gamedb.py", line 120, in GI
GT_BAKERS_DOZEN: n_("Baker's Dozen"),
NameError: name 'n_' is not defined

Discussion

  • Skomoroh
    Skomoroh
    2009-06-10

    It is a bug in python. See hier: http://bugs.python.org/issue2519

     
  • Skomoroh
    Skomoroh
    2009-12-03

    • status: open --> closed-fixed