Skip to content
This repository was archived by the owner on Nov 15, 2024. It is now read-only.

Commit 101f8c1

Browse files
authored
Cloud Function upload python 3 compatibility (GoogleCloudPlatform#608)
1 parent e247902 commit 101f8c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dm/templates/cloud_function/upload.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def upload_source(context_name, project, function, imports, local_path, source_a
5555

5656
# Creates an in-memory archive of the Cloud Function source files.
5757
sources = extract_source_files(imports, local_path)
58-
archive_base64 = base64.b64encode(archive_files(sources))
58+
archive_base64 = base64.b64encode(archive_files(sources)).decode("utf-8")
5959

6060
# The Cloud Function knows it was updated when MD5 changes.
6161
md5 = hashlib.md5()

0 commit comments

Comments
 (0)