Skip to content

Commit d5bd3ae

Browse files
committed
Refactor _acted_upon_ method in DivisorsElement class to remove unnecessary assertion
1 parent 9b1e020 commit d5bd3ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

darmonpoints/divisors.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,8 @@ def scale_by(self, a):
195195
newdict[P] = a * n
196196
return self.__class__(self.parent(), newdict, ptdata=new_ptdata)
197197

198-
def _acted_upon_(self, g, on_left):
199-
assert not on_left
198+
def _acted_upon_(self, g, self_on_left):
199+
# assert not self_on_left
200200
if isinstance(g, Integer) or isinstance(g, int):
201201
return self.scale_by(g)
202202
else:

0 commit comments

Comments
 (0)