From eabd0f8219de7d8e752225ba691b327e652aa1c3 Mon Sep 17 00:00:00 2001 From: Jonathan Rosser Date: Wed, 11 Sep 2019 08:43:26 +0100 Subject: [PATCH] Update swift_rings_check script for python3 Change-Id: Ie23bef5d8335e2ada9e5c539619b8d2de301f272 --- templates/swift_rings_check.py.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/swift_rings_check.py.j2 b/templates/swift_rings_check.py.j2 index 2c7a7216..a2f71852 100644 --- a/templates/swift_rings_check.py.j2 +++ b/templates/swift_rings_check.py.j2 @@ -36,7 +36,7 @@ def get_build_file_data(build_file): build_file_data = None if exists(build_file): try: - with open(build_file) as bf_stream: + with open(build_file, 'rb') as bf_stream: build_file_data = pickle.load(bf_stream) except Exception as ex: print("Error: failed to load build file '%s': %s" % (build_file,