mirror of https://github.com/kivy/kivy.git
Make vector test work in py3.
This commit is contained in:
parent
4a5cd38e5c
commit
5a88e8d128
|
@ -195,6 +195,12 @@ class Vector(list):
|
|||
except Exception:
|
||||
return Vector([x / val for x in self])
|
||||
|
||||
def __rtruediv__(self, val):
|
||||
try:
|
||||
return Vector(*val) / self
|
||||
except Exception:
|
||||
return Vector(val, val) / self
|
||||
|
||||
def __rdiv__(self, val):
|
||||
try:
|
||||
return Vector(*val) / self
|
||||
|
|
Loading…
Reference in New Issue