Bug#373887: the cause of the problem

2006-06-16 Thread Matthias Klose
Chris Moore writes: > When I run it, versions is Set(['2.4']) , and so > trying to evaluate versions[0] causes TypeError: unindexable object. > > I guess the solution is to make requested_versions() always return a > list, but I don't know. that's correct. the fix is in 0.4.17 in incoming. --

Bug#373887: the cause of the problem

2006-06-16 Thread Chris Moore
/usr/share/python/pyversions.py defines requested_versions(), which returns either a list: versions = [current] or a set: versions = vinfo['versions'].intersection(supported) Then /usr/bin/pycentral calls that function, and expects it to return a list: def set_default_runtime_from_version_info