diff options
author | gweis <gerhard.weis@gmail.com> | 2015-09-03 17:04:45 +1000 |
---|---|---|
committer | gweis <gerhard.weis@gmail.com> | 2015-09-03 17:04:45 +1000 |
commit | 27d3bca47e4d39bd5038665726fb157577c5abfa (patch) | |
tree | 4ed48ffe1e2e6dd73bd9b1e3d5ad835fd4d4d044 | |
parent | dcff15cf97f79a4cbd33797a4634ff1f12adb5dd (diff) | |
parent | a41b63f8841e7b5e804c0b328e90cd22f731cb72 (diff) | |
download | isodate-27d3bca47e4d39bd5038665726fb157577c5abfa.tar.gz |
Merge pull request #26 from reinhrst/master
typo in error message
-rw-r--r-- | src/isodate/duration.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/isodate/duration.py b/src/isodate/duration.py index a901865..5408315 100644 --- a/src/isodate/duration.py +++ b/src/isodate/duration.py @@ -216,7 +216,7 @@ class Duration(object): months=self.months * other) newduration.tdelta = self.tdelta * other return newduration - raise TypeError('unsupported operand type(s) for +: %s and %s' % + raise TypeError('unsupported operand type(s) for *: %s and %s' % (self.__class__, other.__class__)) def __rmul__(self, other): @@ -227,7 +227,7 @@ class Duration(object): months=self.months * other) newduration.tdelta = self.tdelta * other return newduration - raise TypeError('unsupported operand type(s) for +: %s and %s' % + raise TypeError('unsupported operand type(s) for *: %s and %s' % (other.__class__, self.__class__)) def __sub__(self, other): |