Skip to content

Commit

Permalink
Remove print statement and fix typo (arrow-py#404)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewelkins committed Dec 31, 2016
1 parent a20b22b commit 24f06c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arrow/arrow.py
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,7 @@ def humanize(self, other=None, locale='en_us', only_distance=False, granularity=
Defaults to now in the current :class:`Arrow <arrow.arrow.Arrow>` object's timezone.
:param locale: (optional) a ``str`` specifying a locale. Defaults to 'en_us'.
:param only_distance: (optional) returns only time difference eg: "11 seconds" without "in" or "ago" part.
:param granularity: (optinal) defines the precision of the output. Set it to strings 'second', 'minute', 'hour', 'day', 'month' or 'year'.
:param granularity: (optional) defines the precision of the output. Set it to strings 'second', 'minute', 'hour', 'day', 'month' or 'year'.
Usage::
>>> earlier = arrow.utcnow().replace(hours=-2)
Expand Down Expand Up @@ -829,7 +829,7 @@ def __sub__(self, other):

elif isinstance(other, Arrow):
return self._datetime - other._datetime
# print granularity

raise TypeError()

def __rsub__(self, other):
Expand Down

0 comments on commit 24f06c1

Please sign in to comment.