瀏覽代碼

[jsinterp] Correct div command

Philipp Hagemeister 10 年之前
父節點
當前提交
8cfb6efe6f
共有 1 個文件被更改,包括 1 次插入1 次删除
  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]