summaryrefslogtreecommitdiffstats
path: root/TOOLS
diff options
context:
space:
mode:
authorjnozsc <jnozsc@gmail.com>2020-02-27 11:46:42 -0800
committerwm4 <1387750+wm4@users.noreply.github.com>2020-02-27 21:36:21 +0100
commit611c92ef1db2efa5c2f548c8ae3aa4072bbe67a8 (patch)
treec67b4d00cacf7576690e3e23ebc4f366a27aaed2 /TOOLS
parentc4440db7448ab8b64103af46e7ffb38e3e57bc0e (diff)
downloadmpv-611c92ef1db2efa5c2f548c8ae3aa4072bbe67a8.tar.bz2
mpv-611c92ef1db2efa5c2f548c8ae3aa4072bbe67a8.tar.xz
*.py: cosmetic changes
Diffstat (limited to 'TOOLS')
-rwxr-xr-xTOOLS/matroska.py2
-rwxr-xr-xTOOLS/osxbundle.py4
-rwxr-xr-xTOOLS/stats-conv.py4
3 files changed, 5 insertions, 5 deletions
diff --git a/TOOLS/matroska.py b/TOOLS/matroska.py
index 0e447bc5ea..2c1b751a54 100755
--- a/TOOLS/matroska.py
+++ b/TOOLS/matroska.py
@@ -276,7 +276,7 @@ class MatroskaElement(object):
def add_subelements(self, subelements):
self.subelements = subelements
- self.subids = set(x[0].elid for x in subelements)
+ self.subids = {x[0].elid for x in subelements}
elementd = {}
elementlist = []
diff --git a/TOOLS/osxbundle.py b/TOOLS/osxbundle.py
index 49a0a98e53..f164b2b3b1 100755
--- a/TOOLS/osxbundle.py
+++ b/TOOLS/osxbundle.py
@@ -1,5 +1,5 @@
#!/usr/bin/env python
-
+from __future__ import print_function
import os
import shutil
import sys
@@ -37,7 +37,7 @@ def copy_binary(binary_name):
def apply_plist_template(plist_file, version):
for line in fileinput.input(plist_file, inplace=1):
- print (line.rstrip().replace('${VERSION}', version))
+ print(line.rstrip().replace('${VERSION}', version))
def create_bundle_symlink(binary_name, symlink_name):
os.symlink(os.path.basename(binary_name),
diff --git a/TOOLS/stats-conv.py b/TOOLS/stats-conv.py
index 5fc092e3c7..16d787ab96 100755
--- a/TOOLS/stats-conv.py
+++ b/TOOLS/stats-conv.py
@@ -147,8 +147,8 @@ if hasval:
ax[1] = win.addPlot()
ax[1].setXLink(ax[0])
for cur in ax:
- if cur is not None:
- cur.addLegend(offset = (-1, 1))
+ if cur is not None:
+ cur.addLegend(offset = (-1, 1))
for e in G.sevents:
cur = ax[1 if e.type == "value" else 0]
if not cur in G.curveno: