refactor: Make interruptable functions use a decorator
commitca8bfdc4c7eeca2db3c50597cd76cd34a89c2857
authorDavid Aguilar <davvid@gmail.com>
Mon, 20 Feb 2012 08:33:31 +0000 (20 00:33 -0800)
committerDavid Aguilar <davvid@gmail.com>
Mon, 20 Feb 2012 08:33:31 +0000 (20 00:33 -0800)
treeb69edccf31154b040fff705809efa3a413aee387
parentffcaf1e9e9565ac63ccfa361c03403ee042e59dc
refactor: Make interruptable functions use a decorator

Move the UNIX-EINTR-retry-loop into a common decorator reused
by the various interruptable functions in core.

Rename the functions to drop the '_intr' suffix.

Signed-off-by: David Aguilar <davvid@gmail.com>
cola/core.py
cola/main/model.py
cola/utils.py
test/helper.py
test/test_cola_core.py