Skip to content

Commit

Permalink
fix all (seven) sphinx warnings
Browse files Browse the repository at this point in the history
mainly these are misnaming of classes' modules
  • Loading branch information
Buck Evan committed Nov 17, 2016
1 parent 9355b40 commit 8ec8f89
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion arrow/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,5 @@ def factory(type):
return ArrowFactory(type)


__all__ = ['get', 'utcnow', 'now', 'factory', 'iso']
__all__ = ['get', 'utcnow', 'now', 'factory']

1 change: 1 addition & 0 deletions arrow/arrow.py
Original file line number Diff line number Diff line change
Expand Up @@ -598,6 +598,7 @@ def humanize(self, other=None, locale='en_us', only_distance=False):
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.
Usage::
>>> earlier = arrow.utcnow().replace(hours=-2)
Expand Down
4 changes: 2 additions & 2 deletions arrow/locales.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@


def get_locale(name):
'''Returns an appropriate :class:`Locale <locale.Locale>` corresponding
to an inpute locale name.
'''Returns an appropriate :class:`Locale <arrow.locales.Locale>`
corresponding to an inpute locale name.
:param name: the name of the locale.
Expand Down
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@

# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
exclude_patterns = ['_build']
exclude_patterns = ['_build', '_themes']

# The reST default role (used for this markup: `text`) to use for all documents.
#default_role = None
Expand Down Expand Up @@ -123,7 +123,7 @@
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static']
html_static_path = []

# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
# using the given strftime format.
Expand Down
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ Call datetime functions that return properties:
Replace & shift
===============

Get a new :class:`Arrow <arrow.Arrow>` object, with altered attributes, just as you would with a datetime:
Get a new :class:`Arrow <arrow.arrow.Arrow>` object, with altered attributes, just as you would with a datetime:

.. code-block:: python
Expand Down

0 comments on commit 8ec8f89

Please sign in to comment.