diff options
Diffstat (limited to 'TOOLS')
-rwxr-xr-x | TOOLS/matroska.py | 2 | ||||
-rwxr-xr-x | TOOLS/osxbundle.py | 4 | ||||
-rwxr-xr-x | TOOLS/stats-conv.py | 4 |
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: |