Skip to content

Commit 4c4689c

Browse files
authored
Fix outdated Python 2 print in docs (#1086)
1 parent e435240 commit 4c4689c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

arrow/arrow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -759,7 +759,7 @@ def interval(
759759
>>> start = datetime(2013, 5, 5, 12, 30)
760760
>>> end = datetime(2013, 5, 5, 17, 15)
761761
>>> for r in arrow.Arrow.interval('hour', start, end, 2):
762-
... print r
762+
... print(r)
763763
...
764764
(<Arrow [2013-05-05T12:00:00+00:00]>, <Arrow [2013-05-05T13:59:59.999999+00:00]>)
765765
(<Arrow [2013-05-05T14:00:00+00:00]>, <Arrow [2013-05-05T15:59:59.999999+00:00]>)

docs/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ You can also get a range of time spans:
315315
>>> start = datetime(2013, 5, 5, 12, 30)
316316
>>> end = datetime(2013, 5, 5, 17, 15)
317317
>>> for r in arrow.Arrow.span_range('hour', start, end):
318-
... print r
318+
... print(r)
319319
...
320320
(<Arrow [2013-05-05T12:00:00+00:00]>, <Arrow [2013-05-05T12:59:59.999999+00:00]>)
321321
(<Arrow [2013-05-05T13:00:00+00:00]>, <Arrow [2013-05-05T13:59:59.999999+00:00]>)
@@ -330,7 +330,7 @@ Or just iterate over a range of time:
330330
>>> start = datetime(2013, 5, 5, 12, 30)
331331
>>> end = datetime(2013, 5, 5, 17, 15)
332332
>>> for r in arrow.Arrow.range('hour', start, end):
333-
... print repr(r)
333+
... print(repr(r))
334334
...
335335
<Arrow [2013-05-05T12:30:00+00:00]>
336336
<Arrow [2013-05-05T13:30:00+00:00]>

0 commit comments

Comments
 (0)