Skip to content

Commit 70b61bc

Browse files
committed
Make __imod__ explicitly call __mod__
1 parent ae7b3c7 commit 70b61bc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/future/types/newbytes.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,9 @@ def __mod__(self, vals):
194194

195195
return _builtin_bytes.__mod__(self, vals)
196196

197+
def __imod__(self, other):
198+
return self.__mod__(other)
199+
197200
def join(self, iterable_of_bytes):
198201
errmsg = 'sequence item {0}: expected bytes, {1} found'
199202
if isbytes(iterable_of_bytes) or istext(iterable_of_bytes):

0 commit comments

Comments
 (0)