PEP 418: Fix time.monotonic() pseudo-code for Mac

Use sys.platform, not os.name
This commit is contained in:
Victor Stinner 2012-04-18 01:43:26 +02:00
parent 54e4d4ccca
commit 107c498e3f
1 changed files with 1 additions and 1 deletions

View File

@ -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()