Commits

Erik van Zijst committed a4bffe9

Renamed local method for clarity.

Comments (0)

Files changed (1)

interruptingcow/__init__.py

 
         raise exception
 
-    def _timeout(seconds, exception):
+    def timeout(seconds, exception):
         if seconds <= 0:
             raise ValueError('Invalid timeout: %s' % seconds)
         if threading.currentThread().name != 'MainThread':
             self._exception = exception
 
         def __enter__(self):
-            self.gen = _timeout(self._seconds, self._exception)
+            self.gen = timeout(self._seconds, self._exception)
             return super(Timeout, self).__enter__()
 
         def __call__(self, func):