]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/compat/__init__.py
[cleanup] Consistent style for file heads
[yt-dlp.git] / yt_dlp / compat / __init__.py
index 35875ed20ed2ee67c10c0a1042cc07fd37b69fd9..9f8e8c3e534a506f294da3186e60eec6c111224b 100644 (file)
@@ -7,7 +7,6 @@
 from ._deprecated import *  # noqa: F401, F403
 from .compat_utils import passthrough_module
 
-
 # XXX: Implement this the same way as other DeprecationWarnings without circular import
 try:
     passthrough_module(__name__, '._legacy', callback=lambda attr: warnings.warn(
@@ -55,7 +54,7 @@ def compat_ord(c):
     def compat_realpath(path):
         while os.path.islink(path):
             path = os.path.abspath(os.readlink(path))
-        return path
+        return os.path.realpath(path)
 else:
     compat_realpath = os.path.realpath