[Python-checkins] peps: PEP 418: Fix time.monotonic() pseudo-code for Mac
victor.stinner
python-checkins at python.org
Wed Apr 18 01:43:30 CEST 2012
http://hg.python.org/peps/rev/081d9add6f3a
changeset: 4264:081d9add6f3a
user: Victor Stinner <victor.stinner at gmail.com>
date: Wed Apr 18 01:43:26 2012 +0200
summary:
PEP 418: Fix time.monotonic() pseudo-code for Mac
Use sys.platform, not os.name
files:
pep-0418.txt | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/pep-0418.txt b/pep-0418.txt
--- a/pep-0418.txt
+++ b/pep-0418.txt
@@ -148,7 +148,7 @@
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()
--
Repository URL: http://hg.python.org/peps
More information about the Python-checkins
mailing list