Changeset 921:11f9fb4fb178 for src/mlx/fsuipc.py
- Timestamp:
- 04/27/19 12:06:32 (5 years ago)
- Branch:
- python3
- hg-Phase:
- (<MercurialRepository 1 'hg:/home/ivaradi/mlx/hg' '/'>, 'public')
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/fsuipc.py
r919 r921 13 13 import codecs 14 14 import math 15 from functools import total_ordering 15 16 16 17 if os.name == "nt" and "FORCE_PYUIPC_SIM" not in os.environ: … … 197 198 Handler._callSafe(lambda: self._callback(None, self._extra)) 198 199 200 @total_ordering 199 201 class PeriodicRequest(object): 200 202 """A periodic request.""" … … 250 252 pass 251 253 252 def __cmp__(self, other): 253 """Compare two periodic requests. They are ordered by their next 254 firing times.""" 255 return cmp(self._nextFire, other._nextFire) 254 def __eq__(self, other): 255 """Equality comparison by the firing times""" 256 return self._nextFire == other._nextFire 257 258 def __ne__(self, other): 259 """Non-equality comparison by the firing times""" 260 return self._nextFire != other._nextFire 261 262 def __lt__(self, other): 263 """Less-than comparison by the firing times""" 264 return self._nextFire < other._nextFire 256 265 257 266 def __init__(self, connectionListener,
Note:
See TracChangeset
for help on using the changeset viewer.