PEP 418: Fix time.monotonic() pseudo-code for Mac
Use sys.platform, not os.name
This commit is contained in:
parent
54e4d4ccca
commit
107c498e3f
|
@ -148,7 +148,7 @@ Pseudo-code [#pseudo]_::
|
|||
monotonic.last = 0
|
||||
monotonic.delta = 0
|
||||
|
||||
elif os.name == 'mac':
|
||||
elif sys.platform == 'darwin':
|
||||
def monotonic():
|
||||
if monotonic.factor is None:
|
||||
factor = _time.mach_timebase_info()
|
||||
|
|
Loading…
Reference in New Issue