P4DTI issue job000512

TitleBugzilla P4DTI doesn't work with Python 2.2
Statusclosed
Priorityessential
Assigned userNick Barnes
OrganizationRavenbrook
DescriptionThe Bugzilla P4DTI inadvertently uses a feature of Python that doesn't work in Python 2.2. Running the P4DTI with Python 2.2 gives an error in the use of has_key at line 412 of bugzilla.py.
  File "bugzilla.py", line 412, in convert_type
    if self.user_fields.has_key(table, name):
TypeError: has_key() takes exactly one argument (2 given)
AnalysisThis should be has_key((table, name)). This changed between Python 1.5.2 and Python 2.2
How foundcustomer
Evidencehttp://info.ravenbrook.com/mail/2002/04/17/18-23-40/0.txt
Observed in1.4.1
Introduced in1.4.1
Created byNick Barnes
Created on2002-04-19 16:04:57
Last modified byNick Barnes
Last modified on2002-04-19 16:04:57
History2002-04-19 NB Created.

Fixes

Change Effect Date User Description
28430 closed 2002-04-19 16:05:57 Nick Barnes has_key can't take multiple arguments instead of a tuple.