Skip to content

Commit 0c4772e

Browse files
authored
Fix incorrect function call in examples.
Order of arguments to write_iter incorrect.
1 parent af6c9b1 commit 0c4772e

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
@@ -35,7 +35,7 @@ def iterable():
3535
yield b'this is a byte string\x01\n'
3636

3737
z = zipstream.ZipFile()
38-
z.write_iter(iterable(), 'my_archive_iter')
38+
z.write_iter('my_archive_iter', iterable())
3939

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

0 commit comments

Comments
 (0)