summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerhard Weis <g.weis@griffith.edu.au>2017-10-13 14:26:20 +1000
committerGerhard Weis <g.weis@griffith.edu.au>2017-10-13 14:26:20 +1000
commite38bd2eed4d1b696fea1512e6bc7f59ca4c13801 (patch)
treea4556f815e031765d8c0857312a207befe49960e
parentf0e777df9fe8cb13e2cbfb938e0a0825b88ff679 (diff)
downloadisodate-e38bd2eed4d1b696fea1512e6bc7f59ca4c13801.tar.gz
typo
-rw-r--r--src/isodate/duration.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/isodate/duration.py b/src/isodate/duration.py
index c47b964..6d1848c 100644
--- a/src/isodate/duration.py
+++ b/src/isodate/duration.py
@@ -166,7 +166,7 @@ class Duration(object):
return newduration
try:
# try anything that looks like a date or datetime
- # other has attributes year, month, day
+ # 'other' has attributes year, month, day
# and relies on 'timedelta + other' being implemented
if (not(float(self.years).is_integer() and
float(self.months).is_integer())):
@@ -193,7 +193,7 @@ class Duration(object):
newduration.tdelta = self.tdelta + other
return newduration
except AttributeError:
- # ignore ... other probably was not a timedelt compatible object
+ # ignore ... other probably was not a timedelta compatible object
pass
# we have tried everything .... return a NotImplemented
return NotImplemented