mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-07 06:24:27 +08:00
Use __truediv__ instead of __div__
This ignores Python 2, but that shouldn't be an issue, since we are going to drop it anyway.
This commit is contained in:
@@ -35,7 +35,7 @@ operator_to_magic_method = {
|
|||||||
'+': '__add__',
|
'+': '__add__',
|
||||||
'-': '__sub__',
|
'-': '__sub__',
|
||||||
'*': '__mul__',
|
'*': '__mul__',
|
||||||
'/': '__div__',
|
'/': '__truediv__',
|
||||||
'//': '__floordiv__',
|
'//': '__floordiv__',
|
||||||
'%': '__mod__',
|
'%': '__mod__',
|
||||||
'**': '__pow__',
|
'**': '__pow__',
|
||||||
|
|||||||
Reference in New Issue
Block a user