Skip to content

Commit

Permalink
get, now & utcnow will now use docs found in ArrowFactory
Browse files Browse the repository at this point in the history
  • Loading branch information
FHTMitchell committed Jan 18, 2018
1 parent 96cb222 commit 874f2f9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions arrow/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,23 @@
from __future__ import absolute_import

from arrow.factory import ArrowFactory
from functools import wraps


# internal default factory.
_factory = ArrowFactory()


@wraps(_factory.get)
def get(*args, **kwargs):
''' Calls the default :class:`ArrowFactory <arrow.factory.ArrowFactory>` ``get`` method.
'''

return _factory.get(*args, **kwargs)


@wraps(_factory.utcnow)
def utcnow():
''' Calls the default :class:`ArrowFactory <arrow.factory.ArrowFactory>` ``utcnow`` method.
Expand All @@ -29,6 +33,7 @@ def utcnow():
return _factory.utcnow()


@wraps(_factory.now)
def now(tz=None):
''' Calls the default :class:`ArrowFactory <arrow.factory.ArrowFactory>` ``now`` method.
Expand Down

0 comments on commit 874f2f9

Please sign in to comment.