aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2015-02-02 01:49:32 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2015-02-02 01:49:32 +0100
commit8cfb6efe6f4a007a4faab132d08717cea0cdfbaf (patch)
tree6469b37217f162f019765f6387d6acd55326965e
parent04edb9caf58642acd4e8bd3fbefaf28eacfe8e9f (diff)
[jsinterp] Correct div command
-rw-r--r--youtube_dl/jsinterp.py2
1 files changed, 1 insertions, 1 deletions
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]