在 2017年1月17日星期二 SGT 上午12:35:23,Boyuan Yang 写道:
> This work is for /usr/bin/reportbug. As previously said Python has a very
> good builtin module for i18n/l10n ("import gettext"). The patches set up a
> basic workflow framework for localization:
>
> Core patches: 0002, 0003, 0004
#384287
A bugfix
Processing control commands:
> tags -1 + patch
Bug #384287 [reportbug] reportbug: please internationalize the software
Bug #614011 [reportbug] reportbug: UI should be localized
Bug #664896 [reportbug] reportbug: Program needs to be localized
Added tag(s) patch.
Added tag(s) patch.
Added tag(s) pat
File "/usr/lib/python3/dist-packages/reportbug/submit.py", line 177,
in mime_attach
email.Encoders.encode_base64(part)
AttributeError: module 'email' has no attribute 'Encoders'
Looks like a typo with a simple fix: s/Encoders/encoders/ in line 177
of reportbug/submit.py
___