1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-10-31 06:35:12 +00:00

[cleanup] Misc cleanup

This commit is contained in:
pukkandan
2021-10-09 05:53:15 +05:30
parent 4e3b637d5b
commit b5ae35ee6d
25 changed files with 142 additions and 136 deletions

View File

@@ -1,3 +1,4 @@
import functools
from threading import Lock
from .utils import supports_terminal_sequences, TERMINAL_SEQUENCES
@@ -49,6 +50,7 @@ class MultilinePrinter(MultilinePrinterBase):
self._HAVE_FULLCAP = supports_terminal_sequences(self.stream)
def lock(func):
@functools.wraps(func)
def wrapper(self, *args, **kwargs):
with self._movelock:
return func(self, *args, **kwargs)