From 1221873dcd567e1a2122418be58fe1b643fac251 Mon Sep 17 00:00:00 2001 From: jakeogh Date: Sat, 29 Dec 2018 01:17:24 -0700 Subject: [PATCH] add locked_file.flush() --- youtube_dl/utils.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py index bca590d4c..4d0324e5e 100644 --- a/youtube_dl/utils.py +++ b/youtube_dl/utils.py @@ -3309,6 +3309,9 @@ class locked_file(object): def read(self, *args): return self.f.read(*args) + def flush(self, *args): + self.f.flush() + def close(self, *args): self.__exit__(self, *args, value=False, traceback=False)