summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaude <github@claude.nl>2015-08-04 15:01:08 +0200
committerClaude <github@claude.nl>2015-08-04 15:01:08 +0200
commit7bdb02f3901fb897b29b78c784820a59779a3282 (patch)
tree58f44c70aacfee74681b47b729c05ab188b7f4d4
parentfe1942f849c2bded41089914543284d598839996 (diff)
downloadisodate-7bdb02f3901fb897b29b78c784820a59779a3282.tar.gz
python 2.6 fix
-rw-r--r--src/isodate/duration.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/isodate/duration.py b/src/isodate/duration.py
index 8740815..a901865 100644
--- a/src/isodate/duration.py
+++ b/src/isodate/duration.py
@@ -213,8 +213,8 @@ class Duration(object):
if isinstance(other, int):
newduration = Duration(
years=self.years * other,
- months=self.months * other,
- seconds=self.tdelta.total_seconds() * other)
+ months=self.months * other)
+ newduration.tdelta = self.tdelta * other
return newduration
raise TypeError('unsupported operand type(s) for +: %s and %s' %
(self.__class__, other.__class__))
@@ -224,8 +224,8 @@ class Duration(object):
if isinstance(other, int):
newduration = Duration(
years=self.years * other,
- months=self.months * other,
- seconds=self.tdelta.total_seconds() * other)
+ months=self.months * other)
+ newduration.tdelta = self.tdelta * other
return newduration
raise TypeError('unsupported operand type(s) for +: %s and %s' %
(other.__class__, self.__class__))