]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[utils] dfxp2srt: make TTMLPElementParser inherit from object
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Tue, 2 Feb 2016 21:30:13 +0000 (22:30 +0100)
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Tue, 2 Feb 2016 21:30:13 +0000 (22:30 +0100)
For consistency between python 2 and 3.

youtube_dl/utils.py

index 18dbe28bb5ecbcdb922f292490a43ccf6662ac9b..4262ad6ac9cf62ad8fc48222d8d026dc38f80b7f 100644 (file)
@@ -2017,7 +2017,7 @@ def dfxp2srt(dfxp_data):
         'ttaf1': 'http://www.w3.org/2006/10/ttaf1',
     })
 
-    class TTMLPElementParser:
+    class TTMLPElementParser(object):
         out = ''
 
         def start(self, tag, attrib):