Fix ne for objbyteinner

This commit is contained in:
ugaemi committed 2020-08-16 02:59:27 +09:00
1 parent 620e4b93ea
commit 148e6cc5bc
1 file changed
+1 -1
+1 -1
View File
@@ -275,7 +275,7 @@ impl PyBytesInner {
}
pub fn ne(&self, other: PyObjectRef, vm: &VirtualMachine) -> PyComparisonValue {
self.cmp(other, |a, b| a != b, vm)
self.eq(other, vm).map(|v| !v)
}
pub fn ge(&self, other: PyObjectRef, vm: &VirtualMachine) -> PyComparisonValue {