|
@@ -244,13 +244,6 @@ def fuse_mount(mount_arg_patterns, mount_point_path):
|
|
|
sys.stderr.write('{}\n'.format(shlex_join(umount_args)))
|
|
|
subprocess.check_call(umount_args)
|
|
|
|
|
|
-def gpg_decrypt(path, verify=False):
|
|
|
- import gpg
|
|
|
- with gpg.Context() as gpg_ctx:
|
|
|
- with open(path, 'rb') as f:
|
|
|
- data, decrypt_result, verify_result = gpg_ctx.decrypt(f, verify=verify)
|
|
|
- return data
|
|
|
-
|
|
|
def os_read_non_blocking(fd, buffer_size_bytes=8*1024, timeout_seconds=0.1):
|
|
|
import select
|
|
|
if fd in select.select([fd], [], [], timeout_seconds)[0]:
|