diff --git a/zipstream/__init__.py b/zipstream/__init__.py index 5d7accd..a086e3a 100644 --- a/zipstream/__init__.py +++ b/zipstream/__init__.py @@ -191,7 +191,7 @@ def __exit__(self, type, value, traceback): def flush(self): while self.paths_to_write: - kwargs = self.paths_to_write.pop() + kwargs = self.paths_to_write.pop(0) for data in self.__write(**kwargs): yield data