X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=youtube_dl%2Fjsinterp.py;h=453e2732cc4faa453a98b153356c2188feef1d35;hb=16e7711e22648027739096560914a976b8eea786;hp=49364786bd17c0d1c55d9094c6d0795d2b2f5224;hpb=9e3f19919aa3e152760f4cd0a7cad348428f3b35;p=youtube-dl diff --git a/youtube_dl/jsinterp.py b/youtube_dl/jsinterp.py index 49364786b..453e2732c 100644 --- a/youtube_dl/jsinterp.py +++ b/youtube_dl/jsinterp.py @@ -17,7 +17,7 @@ _OPERATORS = [ ('-', operator.sub), ('+', operator.add), ('%', operator.mod), - ('/', operator.div), + ('/', operator.truediv), ('*', operator.mul), ] _ASSIGN_OPERATORS = [(op + '=', opfunc) for op, opfunc in _OPERATORS]