From 8cfb6efe6f4a007a4faab132d08717cea0cdfbaf Mon Sep 17 00:00:00 2001 From: Philipp Hagemeister Date: Mon, 2 Feb 2015 01:49:32 +0100 Subject: [PATCH] [jsinterp] Correct div command --- youtube_dl/jsinterp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 @@ ('-', operator.sub), ('+', operator.add), ('%', operator.mod), - ('/', operator.div), + ('/', operator.truediv), ('*', operator.mul), ] _ASSIGN_OPERATORS = [(op + '=', opfunc) for op, opfunc in _OPERATORS]