1
0
mirror of https://github.com/gryf/ebook-converter.git synced 2026-03-23 10:53:34 +01:00

Removed ipc module.

There was only one function in module ipc: eintr_retry_call. This
function was used in pdftohtml module, and turns out[1] it's not needed
anymore. Support for retrying on syscall interrupts was introduced in
Python 3.5 (which was released in 2015), and covers subprocess module
among other modules. In this commit, mentioned eintr_retry_call function
has been removed, and couple of cosmetic changes was done in module
pdftohtml.

[1] https://www.python.org/dev/peps/pep-0475/
This commit is contained in:
2021-02-22 20:59:21 +01:00
parent b2f161670a
commit 2371a5a1c9
2 changed files with 12 additions and 25 deletions

View File

@@ -1,11 +0,0 @@
import errno
def eintr_retry_call(func, *args, **kwargs):
while True:
try:
return func(*args, **kwargs)
except EnvironmentError as e:
if getattr(e, 'errno', None) == errno.EINTR:
continue
raise