mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +00:00
As discussed on the mailing list, current .py files formatting does not conform to the world standard, so we should better reformat it. For this the yapf tool is used. The command I used was yapf -i $(find -name *.py) Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
17 lines
302 B
Python
Executable file
17 lines
302 B
Python
Executable file
import os
|
|
|
|
|
|
def create_fds():
|
|
pipes = []
|
|
for i in range(10):
|
|
(fd1, fd2) = os.pipe()
|
|
pipes.append((os.fdopen(fd2, "wb"), os.fdopen(fd1, "rb")))
|
|
return pipes
|
|
|
|
|
|
def filename(pipef):
|
|
return 'pipe:[%d]' % os.fstat(pipef.fileno()).st_ino
|
|
|
|
|
|
def dump_opts(sockf):
|
|
return []
|