We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4689e73 commit ca014f8Copy full SHA for ca014f8
docs/gl_objects/projects.py
@@ -229,7 +229,9 @@
229
f.save(branch_name='master', commit_message='Update testfile')
230
231
# or for binary data
232
-f.content = base64.b64encode(open('image.png').read())
+# Note: decode() is required with python 3 for data serialization. You can omit
233
+# it with python 2
234
+f.content = base64.b64encode(open('image.png').read()).decode()
235
f.save(branch_name='master', commit_message='Update testfile', encoding='base64')
236
# end files update
237
0 commit comments