python2.4 requires "any" from python2.5

Bug #105264 reported by Matthew Carpenter
2
Affects Status Importance Assigned to Milestone
apport (Ubuntu)
In Progress
Medium
Unassigned

Bug Description

Binary package hint: python2.4

From an application that uses excepthook on Python2.4, I get this error:

Traceback (most recent call last):
  File "testvtrace.py", line 46, in ?
    excepthook(a,b,c)
  File "/var/lib/python-support/python2.4/apport/python_hook.py", line 54, in apport_excepthook
    pr.add_proc_info()
  File "/var/lib/python-support/python2.4/apport/report.py", line 334, in add_proc_info
    self._check_interpreted()
  File "/var/lib/python-support/python2.4/apport/report.py", line 244, in _check_interpreted
    if not any([fnmatch.fnmatch(exebasename, i) for i in interpreters]):

Any is only 2.5, not a __builtin__ in 2.4.4:

matt@faramir:~$ python2.4
Python 2.4.4 (#2, Apr 5 2007, 19:56:05)
[GCC 4.1.2 (Ubuntu 4.1.2-0ubuntu4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import ctypes
>>> any
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
NameError: name 'any' is not defined
>>>

matt@faramir:~$ python
Python 2.5.1c1 (release25-maint, Apr 6 2007, 22:02:36)
[GCC 4.1.2 (Ubuntu 4.1.2-0ubuntu4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> any
<built-in function any>

Revision history for this message
Martin Pitt (pitti) wrote :

Will change to 'current' in Feisty+1.

Changed in apport:
importance: Undecided → Medium
status: Unconfirmed → In Progress
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.