[jsinterp] Correct div command
authorPhilipp Hagemeister <phihag@phihag.de>
Mon, 2 Feb 2015 00:49:32 +0000 (01:49 +0100)
committerPhilipp Hagemeister <phihag@phihag.de>
Mon, 2 Feb 2015 00:49:32 +0000 (01:49 +0100)
youtube_dl/jsinterp.py

index 49364786bd17c0d1c55d9094c6d0795d2b2f5224..453e2732cc4faa453a98b153356c2188feef1d35 100644 (file)
@@ -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]