From a0143260d614c5ab5baf4c612063a4c7de42989e Mon Sep 17 00:00:00 2001 From: Jason Paryani Date: Wed, 3 Sep 2014 15:19:33 -0700 Subject: [PATCH] Make Timer class private --- capnp/lib/capnp.pyx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/capnp/lib/capnp.pyx b/capnp/lib/capnp.pyx index 0ab1be9..c1dfd9c 100644 --- a/capnp/lib/capnp.pyx +++ b/capnp/lib/capnp.pyx @@ -1357,7 +1357,7 @@ cdef _EventLoop C_DEFAULT_EVENT_LOOP_GETTER(): raise RuntimeError("You don't have any EventLoops running. Please make sure to add one") -cdef class Timer: +cdef class _Timer: cdef capnp.Timer * thisptr cdef _init(self, capnp.Timer * timer): @@ -1368,7 +1368,7 @@ cdef class Timer: return _VoidPromise()._init(self.thisptr.afterDelay(capnp.Duration(time))) def getTimer(): - return Timer()._init(helpers.getTimer(C_DEFAULT_EVENT_LOOP_GETTER().thisptr)) + return _Timer()._init(helpers.getTimer(C_DEFAULT_EVENT_LOOP_GETTER().thisptr)) cpdef remove_event_loop(ignore_errors=False): 'Remove the global event loop'