Skip to content

Commit a7eb0cc

Browse files
committed
update spacing
Signed-off-by: Jade Abraham <[email protected]>
1 parent 3af9c06 commit a7eb0cc

File tree

1 file changed

+55
-43
lines changed

1 file changed

+55
-43
lines changed

modules/packages/Python.chpl

+55-43
Original file line numberDiff line numberDiff line change
@@ -3775,71 +3775,81 @@ module Python {
37753775
lhs.retain(res);
37763776
lhs.interpreter.checkException();
37773777
}
3778-
operator+(lhs: borrowed Value, rhs: borrowed Value): owned Value throws do
3778+
operator +(lhs: borrowed Value, rhs: borrowed Value): owned Value throws do
37793779
return _binaryOp("add", lhs, rhs);
3780-
operator+=(ref lhs: owned Value, rhs: borrowed Value) throws do
3780+
operator +=(ref lhs: owned Value, rhs: borrowed Value) throws do
37813781
_binaryOpInPlace("iadd", lhs, rhs);
3782-
operator+=(ref lhs: owned Value, const ref rhs: Value) throws do
3782+
operator +=(ref lhs: owned Value, const ref rhs: Value) throws do
37833783
_binaryOpInPlace("iadd", lhs.borrow(), rhs.borrow());
3784-
operator-(lhs: borrowed Value, rhs: borrowed Value): owned Value throws do
3784+
3785+
operator -(lhs: borrowed Value, rhs: borrowed Value): owned Value throws do
37853786
return _binaryOp("sub", lhs, rhs);
3786-
operator-=(ref lhs: owned Value, rhs: borrowed Value) throws do
3787+
operator -=(ref lhs: owned Value, rhs: borrowed Value) throws do
37873788
_binaryOpInPlace("isub", lhs, rhs);
3788-
operator-=(ref lhs: owned Value, const ref rhs: Value) throws do
3789+
operator -=(ref lhs: owned Value, const ref rhs: Value) throws do
37893790
_binaryOpInPlace("isub", lhs.borrow(), rhs.borrow());
3790-
operator*(lhs: borrowed Value, rhs: borrowed Value): owned Value throws do
3791+
3792+
operator *(lhs: borrowed Value, rhs: borrowed Value): owned Value throws do
37913793
return _binaryOp("mul", lhs, rhs);
3792-
operator*=(ref lhs: owned Value, rhs: borrowed Value) throws do
3794+
operator *=(ref lhs: owned Value, rhs: borrowed Value) throws do
37933795
_binaryOpInPlace("imul", lhs, rhs);
3794-
operator*=(ref lhs: owned Value, const ref rhs: Value) throws do
3796+
operator *=(ref lhs: owned Value, const ref rhs: Value) throws do
37953797
_binaryOpInPlace("imul", lhs.borrow(), rhs.borrow());
3796-
operator/(lhs: borrowed Value, rhs: borrowed Value): owned Value throws do
3798+
3799+
operator /(lhs: borrowed Value, rhs: borrowed Value): owned Value throws do
37973800
return _binaryOp("truediv", lhs, rhs);
3798-
operator/=(ref lhs: owned Value, rhs: borrowed Value) throws do
3801+
operator /=(ref lhs: owned Value, rhs: borrowed Value) throws do
37993802
_binaryOpInPlace("itruediv", lhs, rhs);
3800-
operator/=(ref lhs: owned Value, const ref rhs: Value) throws do
3803+
operator /=(ref lhs: owned Value, const ref rhs: Value) throws do
38013804
_binaryOpInPlace("itruediv", lhs.borrow(), rhs.borrow());
3802-
operator%(lhs: borrowed Value, rhs: borrowed Value): owned Value throws do
3805+
3806+
operator %(lhs: borrowed Value, rhs: borrowed Value): owned Value throws do
38033807
return _binaryOp("mod", lhs, rhs);
3804-
operator%=(ref lhs: owned Value, rhs: borrowed Value) throws do
3808+
operator %=(ref lhs: owned Value, rhs: borrowed Value) throws do
38053809
_binaryOpInPlace("imod", lhs, rhs);
3806-
operator%=(ref lhs: owned Value, const ref rhs: Value) throws do
3810+
operator %=(ref lhs: owned Value, const ref rhs: Value) throws do
38073811
_binaryOpInPlace("imod", lhs.borrow(), rhs.borrow());
3808-
operator**(lhs: borrowed Value, rhs: borrowed Value): owned Value throws do
3812+
3813+
operator **(lhs: borrowed Value, rhs: borrowed Value): owned Value throws do
38093814
return _binaryOp("pow", lhs, rhs);
3810-
operator**=(ref lhs: owned Value, rhs: borrowed Value) throws do
3815+
operator **=(ref lhs: owned Value, rhs: borrowed Value) throws do
38113816
_binaryOpInPlace("ipow", lhs, rhs);
3812-
operator**=(ref lhs: owned Value, const ref rhs: Value) throws do
3817+
operator **=(ref lhs: owned Value, const ref rhs: Value) throws do
38133818
_binaryOpInPlace("ipow", lhs.borrow(), rhs.borrow());
3814-
operator&(lhs: borrowed Value, rhs: borrowed Value): owned Value throws do
3819+
3820+
operator &(lhs: borrowed Value, rhs: borrowed Value): owned Value throws do
38153821
return _binaryOp("and_", lhs, rhs);
3816-
operator&=(ref lhs: owned Value, rhs: borrowed Value) throws do
3822+
operator &=(ref lhs: owned Value, rhs: borrowed Value) throws do
38173823
_binaryOpInPlace("iand", lhs, rhs);
3818-
operator&=(ref lhs: owned Value, const ref rhs: Value) throws do
3824+
operator &=(ref lhs: owned Value, const ref rhs: Value) throws do
38193825
_binaryOpInPlace("iand", lhs.borrow(), rhs.borrow());
3820-
operator|(lhs: borrowed Value, rhs: borrowed Value): owned Value throws do
3826+
3827+
operator |(lhs: borrowed Value, rhs: borrowed Value): owned Value throws do
38213828
return _binaryOp("or_", lhs, rhs);
3822-
operator|=(ref lhs: owned Value, rhs: borrowed Value) throws do
3829+
operator |=(ref lhs: owned Value, rhs: borrowed Value) throws do
38233830
_binaryOpInPlace("ior", lhs, rhs);
3824-
operator|=(ref lhs: owned Value, const ref rhs: Value) throws do
3831+
operator |=(ref lhs: owned Value, const ref rhs: Value) throws do
38253832
_binaryOpInPlace("ior", lhs.borrow(), rhs.borrow());
3826-
operator^(lhs: borrowed Value, rhs: borrowed Value): owned Value throws do
3833+
3834+
operator ^(lhs: borrowed Value, rhs: borrowed Value): owned Value throws do
38273835
return _binaryOp("xor", lhs, rhs);
3828-
operator^=(ref lhs: owned Value, rhs: borrowed Value) throws do
3836+
operator ^=(ref lhs: owned Value, rhs: borrowed Value) throws do
38293837
_binaryOpInPlace("ixor", lhs, rhs);
3830-
operator^=(ref lhs: owned Value, const ref rhs: Value) throws do
3838+
operator ^=(ref lhs: owned Value, const ref rhs: Value) throws do
38313839
_binaryOpInPlace("ixor", lhs.borrow(), rhs.borrow());
3832-
operator<<(lhs: borrowed Value, rhs: borrowed Value): owned Value throws do
3840+
3841+
operator <<(lhs: borrowed Value, rhs: borrowed Value): owned Value throws do
38333842
return _binaryOp("lshift", lhs, rhs);
3834-
operator<<=(ref lhs: owned Value, rhs: borrowed Value) throws do
3843+
operator <<=(ref lhs: owned Value, rhs: borrowed Value) throws do
38353844
_binaryOpInPlace("ilshift", lhs, rhs);
3836-
operator<<=(ref lhs: owned Value, const ref rhs: Value) throws do
3845+
operator <<=(ref lhs: owned Value, const ref rhs: Value) throws do
38373846
_binaryOpInPlace("ilshift", lhs.borrow(), rhs.borrow());
3838-
operator>>(lhs: borrowed Value, rhs: borrowed Value): owned Value throws do
3847+
3848+
operator >>(lhs: borrowed Value, rhs: borrowed Value): owned Value throws do
38393849
return _binaryOp("rshift", lhs, rhs);
3840-
operator>>=(ref lhs: owned Value, rhs: borrowed Value) throws do
3850+
operator >>=(ref lhs: owned Value, rhs: borrowed Value) throws do
38413851
_binaryOpInPlace("irshift", lhs, rhs);
3842-
operator>>=(ref lhs: owned Value, const ref rhs: Value) throws do
3852+
operator >>=(ref lhs: owned Value, const ref rhs: Value) throws do
38433853
_binaryOpInPlace("irshift", lhs.borrow(), rhs.borrow());
38443854

38453855
//
@@ -3855,13 +3865,13 @@ module Python {
38553865
lhs.interpreter.checkException();
38563866
return new Value(lhs.interpreter, res, isOwned=true);
38573867
}
3858-
operator+(lhs: borrowed Value): owned Value throws do
3868+
operator +(lhs: borrowed Value): owned Value throws do
38593869
return _unaryOp("pos", lhs);
3860-
operator-(lhs: borrowed Value): owned Value throws do
3870+
operator -(lhs: borrowed Value): owned Value throws do
38613871
return _unaryOp("neg", lhs);
3862-
operator~(lhs: borrowed Value): owned Value throws do
3872+
operator ~(lhs: borrowed Value): owned Value throws do
38633873
return _unaryOp("invert", lhs);
3864-
operator!(lhs: borrowed Value): owned Value throws do
3874+
operator !(lhs: borrowed Value): owned Value throws do
38653875
return _unaryOp("not_", lhs);
38663876

38673877
//
@@ -3878,17 +3888,19 @@ module Python {
38783888
lhs.interpreter.checkException();
38793889
return lhs.interpreter.fromPythonInner(bool, res);
38803890
}
3881-
operator==(lhs: borrowed Value, rhs: borrowed Value): bool throws do
3891+
operator ==(lhs: borrowed Value, rhs: borrowed Value): bool throws do
38823892
return _cmpOp("eq", lhs, rhs);
3883-
operator!=(lhs: borrowed Value, rhs: borrowed Value): bool throws do
3893+
operator !=(lhs: borrowed Value, rhs: borrowed Value): bool throws do
38843894
return _cmpOp("ne", lhs, rhs);
3885-
operator<(lhs: borrowed Value, rhs: borrowed Value): bool throws do
3895+
3896+
operator <(lhs: borrowed Value, rhs: borrowed Value): bool throws do
38863897
return _cmpOp("lt", lhs, rhs);
3887-
operator<=(lhs: borrowed Value, rhs: borrowed Value): bool throws do
3898+
operator <=(lhs: borrowed Value, rhs: borrowed Value): bool throws do
38883899
return _cmpOp("le", lhs, rhs);
3889-
operator>(lhs: borrowed Value, rhs: borrowed Value): bool throws do
3900+
3901+
operator >(lhs: borrowed Value, rhs: borrowed Value): bool throws do
38903902
return _cmpOp("gt", lhs, rhs);
3891-
operator>=(lhs: borrowed Value, rhs: borrowed Value): bool throws do
3903+
operator >=(lhs: borrowed Value, rhs: borrowed Value): bool throws do
38923904
return _cmpOp("ge", lhs, rhs);
38933905

38943906

0 commit comments

Comments
 (0)