Skip to content

Commit ea324e1

Browse files
committed
Removes remaining references to for_humans()
1 parent 6b991e6 commit ea324e1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pendulum/pendulum_interval.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,10 +226,10 @@ def in_words(self, locale=None):
226226
return ' '.join(parts)
227227

228228
def __str__(self):
229-
return self.for_humans()
229+
return self.in_words()
230230

231231
def __repr__(self):
232-
return self.for_humans()
232+
return self.in_words()
233233

234234
def __add__(self, other):
235235
if isinstance(other, timedelta):

tests/interval_tests/test_in_words.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def setUp(self):
1414

1515
def test_week(self):
1616
self.assertEqual('52 weeks', PendulumInterval(days=364).in_words())
17-
self.assertEqual('1 week', PendulumInterval(days=7).for_humans())
17+
self.assertEqual('1 week', PendulumInterval(days=7).in_words())
1818

1919
def test_week_to_string(self):
2020
self.assertEqual('52 weeks', str(PendulumInterval(days=364)))

0 commit comments

Comments
 (0)