Skip to content

Commit

Permalink
Fix some typos. (#784)
Browse files Browse the repository at this point in the history
* Fix some typos.
  • Loading branch information
elnuno authored and bboe committed Apr 12, 2017
1 parent 547f1e0 commit 127b4b4
Show file tree
Hide file tree
Showing 15 changed files with 27 additions and 26 deletions.
2 changes: 1 addition & 1 deletion docs/examples/obtain_refresh_token.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def main():
'Personal use script at the top: ')
client_secret = input('Enter the client secret, it\'s the line next '
'to secret: ')
commaScopes = input('Now enter a comma seperated list of scopes, or '
commaScopes = input('Now enter a comma separated list of scopes, or '
'all for all tokens: ')

if commaScopes.lower() == 'all':
Expand Down
4 changes: 2 additions & 2 deletions docs/getting_started/configuration/options.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Basic Configuration Options
---------------------------

:check_for_updates: When ``true``, check for new versions of PRAW. When a
newever version of PRAW is available a message is reported
newer version of PRAW is available a message is reported
via standard out (default: ``true``).

:user_agent: (Required) A unique description of your application. The following
Expand Down Expand Up @@ -108,7 +108,7 @@ Your application can utilize PRAW's configuration system in order to provide
its own custom settings.

For instance you might want to add an ``app_debugging: true`` option to your
application's ``praw.ini`` file. To retreive the value of this custom option
application's ``praw.ini`` file. To retrieve the value of this custom option
from an instance of :class:`.Reddit` you can execute:

.. code-block:: python
Expand Down
2 changes: 1 addition & 1 deletion docs/getting_started/configuration/prawini.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ user defined ``praw.ini`` files in a few other locations:
detected in order as one of the following:

1. In the directory specified by the ``XDG_CONFIG_HOME`` environment
varaible on operating systems that define such an environment variable
variable on operating systems that define such an environment variable
(some modern Linux distributions).

2. In the directory specified by ``$HOME/.config`` if the ``HOME``
Expand Down
4 changes: 2 additions & 2 deletions docs/getting_started/quick_start.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Prerequisites
a client ID and client secret, follow Reddit's
`First Steps Guide`_ to create them.

:User Agent: A user agent is a unique indentifer that helps Reddit determine
:User Agent: A user agent is a unique identifier that helps Reddit determine
the source of network requests. To use Reddit's API, you need a
unique and descriptive user agent. The recommended format is
``<platform>:<app ID>:<version string> (by /u/<Reddit
Expand All @@ -45,7 +45,7 @@ Prerequisites
.. _`First Steps Guide`:
https://github.com/reddit/reddit/wiki/OAuth2-Quick-Start-Example#first-steps

With these prerequisites satisifed, you are ready to learn how to do some of
With these prerequisites satisfied, you are ready to learn how to do some of
the most common tasks with Reddit's API.

Common Tasks
Expand Down
2 changes: 1 addition & 1 deletion docs/package_info/contributing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ checks. The following are PRAW-specific guidelines in addition to those PEP's.
Code
----

* Within a single file classes are sorted alphabetically where inheritence
* Within a single file classes are sorted alphabetically where inheritance
permits.
* Within a class, methods are sorted alphabetically within their respective
groups with the following as the grouping order:
Expand Down
2 changes: 1 addition & 1 deletion praw/models/inbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def sent(self, **generator_kwargs):
Additional keyword arguments are passed in the initialization of
:class:`.ListingGenerator`.
For example, to output the receipient of the mot recent 15 messages
For example, to output the recipient of the mot recent 15 messages
try:
.. code:: python
Expand Down
2 changes: 1 addition & 1 deletion praw/models/listing/mixins/subreddit.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

class SubredditListingMixin(BaseListingMixin, GildedListingMixin,
RisingListingMixin):
"""Adds additional methods pertianing to Subreddit-like instances."""
"""Adds additional methods pertaining to Subreddit-like instances."""

@property
def comments(self):
Expand Down
2 changes: 1 addition & 1 deletion praw/models/reddit/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def __eq__(self, other):
str(self).lower() == str(other).lower())

def __getattr__(self, attribute):
"""Return the value of `attrribute`."""
"""Return the value of `attribute`."""
if not attribute.startswith('_') and not self._fetched:
self._fetch()
return getattr(self, attribute)
Expand Down
2 changes: 1 addition & 1 deletion praw/models/reddit/mixins/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def distinguish(self, how='yes', sticky=False):
:param how: One of 'yes', 'no', 'admin', 'special'. 'yes' adds a
moderator level distinguish. 'no' removes any distinction. 'admin'
and 'special' require special user priviliges to use.
and 'special' require special user privileges to use.
:param sticky: Comment is stickied if True, placing it at the top of
the comment page regardless of score. If thing is not a top-level
comment, this parameter is silently ignored.
Expand Down
4 changes: 2 additions & 2 deletions praw/models/reddit/modmail.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,13 +169,13 @@ def reply(self, body, author_hidden=False, internal=False):
.. code:: python
conversation = reddit.subreddit('redditdev').modmail('2gmz')
converation.reply('Message body', author_hidden=True)
conversation.reply('Message body', author_hidden=True)
To create a private moderator note on the conversation:
.. code:: python
converation.reply('Message body', internal=True)
conversation.reply('Message body', internal=True)
"""
data = {'body': body, 'isAuthorHidden': author_hidden,
Expand Down
2 changes: 1 addition & 1 deletion praw/models/reddit/more.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def __eq__(self, other):
self.count == other.count and self.children == other.children

def __lt__(self, other):
"""Proide a sort order on the MoreComments object."""
"""Provide a sort order on the MoreComments object."""
# To work with heapq a "smaller" item is the one with the most comments
# We are intentionally making the biggest element the smallest element
# to turn the min-heap implementation in heapq into a max-heap.
Expand Down
13 changes: 7 additions & 6 deletions praw/models/reddit/subreddit.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ def search(self, query, sort='relevance', syntax='cloudsearch',
(default: all).
.. warning:: (Deprecation) The default search syntax is changing to
``lucene`` in PRAW 5. For forward compatability please explicitly
``lucene`` in PRAW 5. For forward compatibility please explicitly
provide the search syntax.
For more information on building a search query see:
Expand Down Expand Up @@ -391,7 +391,7 @@ def submissions(self, start=None, end=None, extra_query=None):
submission yielded during the call. A value of ``None`` will
consider all submissions newer than ``start`` (default: None).
:param extra_query: A cloudsearch query that will be combined via
``(and timestamp:start..end EXTRA_QUERY)`` to futher filter
``(and timestamp:start..end EXTRA_QUERY)`` to further filter
results (default: None).
Submissions are yielded newest first.
Expand Down Expand Up @@ -510,7 +510,7 @@ def unsubscribe(self, other_subreddits=None):
class SubredditFilters(object):
"""Provide functions to interact with the special Subreddit's filters.
Members of this class should be utilized via ``Subreddit.fiters``. For
Members of this class should be utilized via ``Subreddit.filters``. For
example to add a filter run:
.. code:: python
Expand Down Expand Up @@ -1170,7 +1170,7 @@ def update(self, **settings):
Additional keyword arguments can be provided to handle new settings as
Reddit introduces them.
Settings that are documented here and aren't explitly set by you in a
Settings that are documented here and aren't explicitly set by you in a
call to :meth:`.SubredditModeration.update` should retain their current
value. If they do not please file a bug.
Expand Down Expand Up @@ -1842,7 +1842,7 @@ def delete_mobile_icon(self):
.. code:: python
reddit.subreddit('SUBREDDIT').stylesheet.delete_ombile_icon()
reddit.subreddit('SUBREDDIT').stylesheet.delete_mobile_icon()
"""
url = API_PATH['delete_sr_icon'].format(subreddit=self.subreddit)
Expand Down Expand Up @@ -2011,7 +2011,8 @@ def __iter__(self):
def create(self, name, content, reason=None, **other_settings):
"""Create a new wiki page.
:param name: The name of the new WikiPage. This name will be normalied.
:param name: The name of the new WikiPage. This name will be
normalized.
:param content: The content of the new WikiPage.
:param reason: (Optional) The reason for the creation.
:param other_settings: Additional keyword arguments to pass.
Expand Down
8 changes: 4 additions & 4 deletions praw/reddit.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def __init__(self, site_name=None, requestor_class=None,
* client_secret (for installed applications set this value to ``None``)
* user_agent
The ``requestor_class`` and ``requerstor_kwargs`` allow for
The ``requestor_class`` and ``requestor_kwargs`` allow for
customization of the requestor :class`.Reddit` will use. This allows,
e.g., easily adding behavior to the requestor or wrapping its
:class`Session` in a caching layer. Example usage:
Expand Down Expand Up @@ -151,7 +151,7 @@ def request(self, *args, **kwargs):
if self.config.client_secret is self.config.CONFIG_NOT_SET:
raise ClientException(required_message.format('client_secret') +
'\nFor installed applications this value '
'must be set to None via a keyword arugment '
'must be set to None via a keyword argument '
'to the `Reddit` class constructor.')

self._check_for_update()
Expand Down Expand Up @@ -400,7 +400,7 @@ def post(self, path, data=None, files=None, params=None):
:param path: The path to fetch.
:param data: Dictionary, bytes, or file-like object to send in the body
of the request (default: None).
:param files: Dictionary, filename to file (like) object mappin
:param files: Dictionary, filename to file (like) object mapping
(default: None).
:param params: The query parameters to add to the request (default:
None).
Expand Down Expand Up @@ -443,7 +443,7 @@ def request(self, method, path, params=None, data=None, files=None):
None).
:param data: Dictionary, bytes, or file-like object to send in the body
of the request (default: None).
:param files: Dictionary, filename to file (like) object mappin
:param files: Dictionary, filename to file (like) object mapping
(default: None).
"""
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/models/test_comment_forest.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
class TestCommentForest(IntegrationTest):
def setup(self):
super(TestCommentForest, self).setup()
# Responses do not decode well on travis so manually renable gzip.
# Responses do not decode well on travis so manually re-enable gzip.
self.reddit._core._requestor._http.headers['Accept-Encoding'] = 'gzip'

def test_replace__all(self):
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/models/reddit/test_subreddit.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from ... import UnitTest


class TestSubredit(UnitTest):
class TestSubreddit(UnitTest):
def test_equality(self):
subreddit1 = Subreddit(self.reddit,
_data={'display_name': 'dummy1', 'n': 1})
Expand Down

0 comments on commit 127b4b4

Please sign in to comment.