Skip to content

Commit 35c6bbb

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/gl_objects/builds.py

+1-1
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)