|
@@ -251,14 +251,6 @@ def gpg_decrypt(path, verify=False):
|
|
|
data, decrypt_result, verify_result = gpg_ctx.decrypt(f, verify=verify)
|
|
|
return data
|
|
|
|
|
|
-def locate(*patterns, match_all=True, ignore_case=True):
|
|
|
- params = []
|
|
|
- if match_all:
|
|
|
- params.insert(0, '--all')
|
|
|
- if ignore_case:
|
|
|
- params.insert(0, '--ignore-case')
|
|
|
- return $(locate @(params) -- @(patterns)).split('\n')[:-1]
|
|
|
-
|
|
|
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]:
|