Changeset 919:2ce8ca39525b for src/mlx/rpccommon.py
- Timestamp:
- 03/24/19 08:15:59 (5 years ago)
- Branch:
- python3
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/rpccommon.py
r742 r919 3 3 #------------------------------------------------------------------------------ 4 4 5 import const5 from . import const 6 6 7 7 #------------------------------------------------------------------------------ … … 51 51 """Check if the gate of the given plane conflicts with another plane's 52 52 position.""" 53 for p in self._planes. itervalues():53 for p in self._planes.values(): 54 54 if p.tailNumber!=plane.tailNumber and \ 55 55 p.status==const.PLANE_HOME and \ … … 62 62 """Get a set containing the numbers of the gates occupied by planes.""" 63 63 gateNumbers = set() 64 for p in self._planes. itervalues():64 for p in self._planes.values(): 65 65 if p.status==const.PLANE_HOME and p.gateNumber: 66 66 gateNumbers.add(p.gateNumber) … … 80 80 def __iter__(self): 81 81 """Get an iterator over the planes.""" 82 for plane in self._planes. itervalues():82 for plane in self._planes.values(): 83 83 yield plane 84 84
Note:
See TracChangeset
for help on using the changeset viewer.