Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 663f445f in mainline


Ignore:
Timestamp:
2020-07-01T14:10:06Z (5 weeks ago)
Author:
Jakub Jermář <jakub@…>
Branches:
master
Children:
edb57bc6
Parents:
ce52c333
Message:

Adapt ew.py to Python 3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/ew.py

    rce52c333 r663f445f  
    3939import subprocess
    4040import sys
    41 import thread
     41import _thread
    4242import time
    4343
     
    6868
    6969def cfg_get(platform, machine, processor):
    70         if machine == "" or emulators[platform].has_key("run"):
     70        if machine == "" or "run" in emulators[platform]:
    7171                return emulators[platform]
    72         elif processor == "" or emulators[platform][machine].has_key("run"):
     72        elif processor == "" or "run" in emulators[platform][machine]:
    7373                return emulators[platform][machine]
    7474        else:
Note: See TracChangeset for help on using the changeset viewer.