Browse Source

[jsinterp] Correct div command

Philipp Hagemeister 10 years ago
parent
commit
8cfb6efe6f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      youtube_dl/jsinterp.py

+ 1 - 1
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]