From: Philipp Hagemeister Date: Mon, 2 Feb 2015 00:49:32 +0000 (+0100) Subject: [jsinterp] Correct div command X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=8cfb6efe6f4a007a4faab132d08717cea0cdfbaf;p=youtube-dl [jsinterp] Correct div command --- 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]