codegen: use NotImplementedError

This commit is contained in:
András Veres-Szentkirályi 2016-02-23 16:21:30 +01:00
parent f295a07c83
commit c185ea571b

View file

@ -14,7 +14,7 @@ class Image(object):
elif isinstance(item, int):
return Image('{0} + RGB({1})]'.format(self.content, item))
else:
raise NotImplemented
raise NotImplementedError()
def __rmul__(self, n):
return Image('({1} * {0})'.format(self.content, float(n)))