Title | Bugzilla P4DTI doesn't work with Python 2.2 |
Status | closed |
Priority | essential |
Assigned user | Nick Barnes |
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 |
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. |
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. |