FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[docs] artifacts example: open file in wb mode · python-gitlab/python-gitlab@35c6bbb · GitHub

Repository navigation

Commit 35c6bbb

Browse files
Gauvain Pocentek
committed
[docs] artifacts example: open file in wb mode
Fixes #194
1 parent d86ca59 commit 35c6bbb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎docs/gl_objects/builds.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
# stream artifacts
8181
class Foo(object):
8282
def __init__(self):
83-
self._fd = open('artifacts.zip', 'w')
83+
self._fd = open('artifacts.zip', 'wb')
8484

8585
def __call__(self, chunk):
8686
self._fd.write(chunk)

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL