Ravenbrook / Projects / Perforce Defect Tracking Integration / Issues

Perforce Defect Tracking Integration


P4DTI issue job000512

Title: Bugzilla P4DTI doesn't work with Python 2.2
Status: closed
Priority: essential
Assigned user: Nick Barnes
Product: p4dti
Organization: Ravenbrook
Description: The 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)
Analysis: This should be has_key((table, name)). This changed between Python 1.5.2 and Python 2.2
How found: customer
Evidence: http://info.ravenbrook.com/mail/2002/04/17/18-23-40/0.txt
Observed in: 1.4.1
Introduced in: 1.4.1
Test procedure: none
Created by: Nick Barnes
Created on: 2002-04-19 16:04:57
Last modified by: Nick Barnes
Last modified on: 2002-04-19 16:04:57
History: 2002-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.

Generated at 2008-07-20 23:11:30 by $Id: //info.ravenbrook.com/infosys/cgi/issue.cgi#430 $

Copyright © Ravenbrook Limited. This document is provided "as is", without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this document. You may make and distribute verbatim copies of this document provided that you do not charge a fee for this document or for its distribution.

Ravenbrook / Projects / Perforce Defect Tracking Integration / Issues