Skip to content

Commit

Permalink
Fix examples for file modification
Browse files Browse the repository at this point in the history
Fixes #156
  • Loading branch information
Gauvain Pocentek committed Sep 25, 2016
1 parent 6f7e499 commit d09eaa0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/gl_objects/projects.py
Expand Up @@ -226,11 +226,11 @@

# files update
f.content = 'new content'
f.save(branch='master', commit_message='Update testfile')
f.save(branch_name='master', commit_message='Update testfile')

# or for binary data
f.content = base64.b64encode(open('image.png').read())
f.save(branch='master', commit_message='Update testfile', encoding='base64')
f.save(branch_name='master', commit_message='Update testfile', encoding='base64')
# end files update

# files delete
Expand Down

0 comments on commit d09eaa0

Please sign in to comment.