[SRU intrepid] python-uniconvertor exits interpreter on import
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-uniconvertor (Ubuntu) |
Fix Released
|
Undecided
|
Andreas Wenning | ||
Bug Description
Original bug description:
uniconvertor's __init__.py unconditionally tests sys.argv, and if it is found lacking (wrong number of args, etc.), the script calls sys.exit. This wouldn't be much of a problem except that when you run 'help("modules")' in the Python interpreter, it tries to import every module it can find, and when it imports uniconvertor, the interpreter suddenly quits. (Tangentially, this also breaks zsh's tab-completion script for arguments to 'python -m'.)
Rationale:
Installation of this package breaks certain python features, like help("modules") and has an impact on tab completion as well.
Other fixes:
The bug is fixed in version 1.1.3-4 in jaunty. This minimal patch attached here is pending in testing-
TEST CASE:
Start python and run help("modules") or import uniconvertor. Before installing the proposed version the python interpreter exits unexpectedly. After installing the proposed version the commands works as they respectively should.
Regression potential:
The package has one and only one usage; running it from command-line with two arguments input-file and output-file. As this usecase can be verified as still working fully, there is no regression potential in this patch.
Related branches
description: | updated |
Hi
Thanks for noticing this issue. Please test the proposed fix made for intrepid in python-uniconvertor 1.1.2-1ubuntu0. 1~ppa1 available from my PPA: https:/ /launchpad. net/~andreas- wenning/ +archive