[pypy-commit] pypy py3k: Fix a few silly typos.
marky1991
pypy.commits at gmail.com
Fri Jul 22 04:35:19 EDT 2016
Author: Mark Young <marky1991 at gmail.com>
Branch: py3k
Changeset: r85802:c67f0979fc8a
Date: 2016-07-07 23:11 -0400
http://bitbucket.org/pypy/pypy/changeset/c67f0979fc8a/
Log: Fix a few silly typos.
diff --git a/pypy/module/time/interp_time.py b/pypy/module/time/interp_time.py
--- a/pypy/module/time/interp_time.py
+++ b/pypy/module/time/interp_time.py
@@ -917,10 +917,10 @@
# hacking to avoid LARGE_INTEGER which is a union...
QueryPerformanceCounter = external(
'QueryPerformanceCounter', [rffi.CArrayPtr(lltype.SignedLongLong)],
- lltype.Void, releasegil=False)
+ lltype.Void)
QueryPerformanceFrequency = external(
'QueryPerformanceFrequency', [rffi.CArrayPtr(lltype.SignedLongLong)],
- rffi.INT, releasegil=False)
+ rffi.INT)
class State(object):
divisor = 0.0
counter_start = 0
@@ -953,7 +953,6 @@
except Exception:
pass
return time(space, w_info=w_info)
-
else:
def perf_counter(space, w_info=None):
if HAS_MONOTONIC:
@@ -1033,7 +1032,7 @@
return clock(space)
if HAS_CLOCK:
- _clock = external('clock', [], clock_t)"
+ _clock = external('clock', [], clock_t)
def clock(space, w_info=None):
"""clock() -> floating point number
@@ -1042,7 +1041,7 @@
records."""
if _WIN:
try:
- return win_perf_counter(space, w_info=w_info))
+ return win_perf_counter(space, w_info=w_info)
except ValueError:
pass
value = _clock()
More information about the pypy-commit
mailing list