Unnecessary imports to work out apport reporting is disabled
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Apport |
Fix Released
|
Low
|
Unassigned | ||
apport (Ubuntu) |
Fix Released
|
Low
|
Martin Pitt | ||
Lucid |
Fix Released
|
Low
|
Martin Pitt |
Bug Description
Binary package hint: apport
This post http://
To demonstrate the problem:
>>> import sys
>>> len(sys.modules)
34
>>> foo
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'foo' is not defined
>>> len(sys.modules)
215
>>>
This is because the apport_
The solution is to move the check of /etc/default/apport into the hook which results in the following:
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> len(sys.modules)
39
>>> foo
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'foo' is not defined
>>> len(sys.modules)
39
Changed in apport (Ubuntu): | |
status: | New → Confirmed |
Changed in apport: | |
status: | New → Confirmed |
Changed in apport (Ubuntu): | |
importance: | Undecided → Medium |
tags: | added: patch |
Wow, crazy. Good find.