diff options
author | wm4 <wm4@nowhere> | 2012-09-29 15:53:54 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2012-09-29 15:53:54 +0200 |
commit | 0ee09dcdbecc115531ee4fbfa534bcb654b5cbf6 (patch) | |
tree | 7f2d310394b056b3c9bc8974e4308e8b8a7b607e /TOOLS/matroska.py | |
parent | 327a5d0ecf33dd44e5542f9128a26d7659864a79 (diff) | |
download | mpv-0ee09dcdbecc115531ee4fbfa534bcb654b5cbf6.tar.bz2 mpv-0ee09dcdbecc115531ee4fbfa534bcb654b5cbf6.tar.xz |
build: make Python scripts compatible with Python 2.x
They were originally written for Python 3.x. Changing them to work on
Python 2.x as well is trivial. Tested with Python 2.7.3 and 3.2.3.
Diffstat (limited to 'TOOLS/matroska.py')
-rwxr-xr-x | TOOLS/matroska.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/TOOLS/matroska.py b/TOOLS/matroska.py index ffa388e47b..ab5684f1ed 100755 --- a/TOOLS/matroska.py +++ b/TOOLS/matroska.py @@ -22,6 +22,8 @@ Can also be used to directly parse Matroska files and display their contents. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # +# for compatibility with Python 2.x +from __future__ import print_function elements_ebml = ( 'EBML, 1a45dfa3, sub', ( |