[ARVADOS] updated: 1.4.2-11-gd9007d9fc
Git user
git at public.arvados.org
Thu Jan 2 20:59:20 UTC 2020
Summary of changes:
sdk/python/arvados/commands/keepdocker.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
via d9007d9fcab69b97f3eb8d85e4eb17b93c475b0b (commit)
from 7892b534a9bdf317e61f470300065ef235edc117 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit d9007d9fcab69b97f3eb8d85e4eb17b93c475b0b
Author: Peter Amstutz <peter.amstutz at curii.com>
Date: Thu Jan 2 15:53:56 2020 -0500
15965: Decode as UTF-8 to avoid "not ASCII" error on Python 2
Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz at curii.com>
diff --git a/sdk/python/arvados/commands/keepdocker.py b/sdk/python/arvados/commands/keepdocker.py
index d4fecc47b..62b9a9ed1 100644
--- a/sdk/python/arvados/commands/keepdocker.py
+++ b/sdk/python/arvados/commands/keepdocker.py
@@ -105,7 +105,7 @@ def docker_image_format(image_hash):
cmd = popen_docker(['inspect', '--format={{.Id}}', image_hash],
stdout=subprocess.PIPE)
try:
- image_id = next(cmd.stdout).decode().strip()
+ image_id = next(cmd.stdout).decode('utf-8').strip()
if image_id.startswith('sha256:'):
return 'v2'
elif ':' not in image_id:
@@ -136,7 +136,7 @@ def docker_images():
next(list_output) # Ignore the header line
for line in list_output:
words = line.split()
- words = [word.decode() for word in words]
+ words = [word.decode('utf-8') for word in words]
size_index = len(words) - 2
repo, tag, imageid = words[:3]
ctime = ' '.join(words[3:size_index])
@@ -513,7 +513,7 @@ def main(arguments=None, stdout=sys.stdout, install_sig_handlers=True, api=None)
else:
json_filename = raw_image_hash + '/json'
json_file = image_tar.extractfile(image_tar.getmember(json_filename))
- image_metadata = json.loads(json_file.read().decode())
+ image_metadata = json.loads(json_file.read().decode('utf-8'))
json_file.close()
image_tar.close()
link_base = {'head_uuid': coll_uuid, 'properties': {}}
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list