Bug #1924

Remove has_key method from Python scripts

Added by Knödlseder Jürgen about 7 years ago. Updated about 7 years ago.

Status:ClosedStart date:02/09/2017
Priority:UrgentDue date:
Assigned To:Knödlseder Jürgen% Done:

100%

Category:-
Target version:1.2.0
Duration:

Description

The has_key() method should not be used on Python scripts as it has been removed in Python 3.x. Instead of

d.has_key('a')

the following should be used
'a' in d


Recurrence

No recurrence.

History

#1 Updated by Knödlseder Jürgen about 7 years ago

So far the following scripts are concerned:

examples/show_response.py
examples/show_sensitivity.py

#2 Updated by Knödlseder Jürgen about 7 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

Merged into devel

Also available in: Atom PDF