** Summary changed:
- python-uniconvertor exits interpreter on import
+ [SRU intrepid] python-uniconvertor exits interpreter on import
** Description changed:
- 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'.)
+ 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-proposed-updates in debian.
+
+ 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.
--
[SRU intrepid] python-uniconvertor exits interpreter on import
https://bugs.launchpad.net/bugs/300141
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs