Same fix for EncodedSize.__mul__

This commit is contained in:
Petteri Aimonen
2013-10-24 09:52:40 +03:00
parent 0848255d4a
commit 86d6983156

View File

@@ -115,7 +115,7 @@ class EncodedSize:
raise ValueError("Cannot add size: " + repr(other))
def __mul__(self, other):
if isinstance(other, int):
if isinstance(other, (int, long)):
return EncodedSize(self.value * other, [str(other) + '*' + s for s in self.symbols])
else:
raise ValueError("Cannot multiply size: " + repr(other))