Skip to content

Commit bdf5b14

Browse files
committed
Corrected order of arguments in example
The function write_iter receives a filename and an iterable in that order.
1 parent 8abfa34 commit bdf5b14

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def iterable():
5151

5252
z = zipstream.ZipFile()
5353
z.write('path/to/files', 'my_archive_files')
54-
z.write_iter(iterable(), 'my_archive_iter')
54+
z.write_iter('my_archive_iter', iterable())
5555

5656
with open('zipfile.zip', 'wb') as f:
5757
for data in z:

0 commit comments

Comments
 (0)