summaryrefslogtreecommitdiff
path: root/src/isodate/duration.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/isodate/duration.py')
-rw-r--r--src/isodate/duration.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/isodate/duration.py b/src/isodate/duration.py
index d923cee..96127ab 100644
--- a/src/isodate/duration.py
+++ b/src/isodate/duration.py
@@ -180,7 +180,8 @@ class Duration(object):
newday = maxdays
else:
newday = other.day
- newdt = other.replace(year=int(newyear), month=int(newmonth), day=newday)
+ newdt = other.replace(
+ year=int(newyear), month=int(newmonth), day=newday)
# does a timedelta + date/datetime
return self.tdelta + newdt
except AttributeError:
@@ -264,7 +265,8 @@ class Duration(object):
newday = maxdays
else:
newday = other.day
- newdt = other.replace(year=int(newyear), month=int(newmonth), day=newday)
+ newdt = other.replace(
+ year=int(newyear), month=int(newmonth), day=newday)
return newdt - self.tdelta
except AttributeError:
# other probably was not compatible with data/datetime