]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/minicurses.py
[cleanup] Misc cleanup
[yt-dlp.git] / yt_dlp / minicurses.py
index a466fb4b03d0bc2aea0c25c3ac38f3951e89aa37..0e37ed8183cc4018e81b5072ff6f217cc022dfa1 100644 (file)
@@ -1,3 +1,4 @@
+import functools
 from threading import Lock
 from .utils import supports_terminal_sequences, TERMINAL_SEQUENCES
 
@@ -49,6 +50,7 @@ def __init__(self, stream=None, lines=1, preserve_output=True):
         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)