summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjimman2003 <58356745+jimman2003@users.noreply.github.com>2021-02-12 14:48:47 +0200
committerJan Ekström <jeebjp@gmail.com>2021-03-03 21:35:33 +0200
commitaac1844179194585d554b4dc24bd90ede3cb3a11 (patch)
treeb4b3e6e95f7589dd23f3b57ee5f2543647a96b67
parent99968e1ce5b40cc806651a053aaa337d104abfe5 (diff)
downloadmpv-master.tar.bz2
mpv-master.tar.xz
umpv: Use generator expression for filesHEADmaster
Instead of list. potential memory savings.
-rwxr-xr-xTOOLS/umpv2
1 files changed, 1 insertions, 1 deletions
diff --git a/TOOLS/umpv b/TOOLS/umpv
index 67f80e64c6..2044e3e926 100755
--- a/TOOLS/umpv
+++ b/TOOLS/umpv
@@ -50,7 +50,7 @@ def make_abs(filename):
if not is_url(filename):
return os.path.abspath(filename)
return filename
-files = [make_abs(f) for f in files]
+files = (make_abs(f) for f in files)
SOCK = os.path.join(os.getenv("HOME"), ".umpv_socket")